VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
makVrv::DtMipmapGenerateOp Class Reference

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.

Inheritance diagram for makVrv::DtMipmapGenerateOp:
Inheritance graph
[legend]

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
 

Constructor & Destructor Documentation

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.

Parameters
deEngine context.
handleShared GL texture name.
dirtyShared dirty flag set by upload ops.

Member Function Documentation

virtual void makVrv::DtMipmapGenerateOp::execute ( )
overridevirtual

If dirty, bind and call glGenerateMipmap; otherwise no-op.

Implements makVrv::DtGpuOperation.

Member Data Documentation

std::shared_ptr<GLuint> makVrv::DtMipmapGenerateOp::myHandle
private
std::shared_ptr<std::atomic<bool> > makVrv::DtMipmapGenerateOp::myDirty
private

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)