![]() |
VR-Forces Developer's Guide
|
Persistent GPU op that regenerates mipmaps for a texture once per frame.
Registered as a persistent op on DtGpuArena by DtGlTextureWrapper. On each frame, checks a shared dirty flag; if set, binds the texture and calls glGenerateMipmap. If not dirty, the op is a single-branch no-op.

Public Member Functions | |
| DtMipmapGenerateOp (DtDe &de, std::shared_ptr< GLuint > handle, std::shared_ptr< std::atomic< bool >> dirty) | |
| virtual void | execute () override |
Public Member Functions inherited from makVrv::DtGpuOperation | |
| DtGpuOperation (const std::string &name, DtDe &de) | |
| virtual | ~DtGpuOperation () |
| virtual void | execute (DtGpuArenaUploadState &uploadState) |
Private Attributes | |
| std::shared_ptr< GLuint > | myHandle |
| std::shared_ptr< std::atomic < bool > > | myDirty |
Additional Inherited Members | |
Protected Attributes inherited from makVrv::DtGpuOperation | |
| DtDe & | myDe |
| const std::string | myName |
| makVrv::DtMipmapGenerateOp::DtMipmapGenerateOp | ( | DtDe & | de, |
| std::shared_ptr< GLuint > | handle, | ||
| std::shared_ptr< std::atomic< bool >> | dirty | ||
| ) |
Construct with the shared handle and dirty flag.
| de | Engine context. |
| handle | Shared GL texture name. |
| dirty | Shared dirty flag set by upload ops. |
|
overridevirtual |
If dirty, bind and call glGenerateMipmap; otherwise no-op.
Implements makVrv::DtGpuOperation.
|
private |
|
private |