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 | Protected Attributes | Private Member Functions
makVrv::DtGpuOperation Class Referenceabstract

Abstract base for any operation that runs on the GPU via DtGpuArena.

A DtGpuOperation encapsulates a discrete unit of GPU work — texture allocation, pixel upload, deletion, compute dispatch, or any other GL call that must be issued on the render-context thread. Concrete subclasses override execute() to carry out the GL work.

Operations are queued through DtGpuArena::addOneTimeGpuOp() for single-shot execution, or DtGpuArena::addPersistentOp() for once-per-frame execution.

See Also
DtGpuArena
Inheritance diagram for makVrv::DtGpuOperation:
Inheritance graph
[legend]

Public Member Functions

 DtGpuOperation (const std::string &name, DtDe &de)
 
virtual ~DtGpuOperation ()
 
virtual void execute ()=0
 
virtual void execute (DtGpuArenaUploadState &uploadState)
 

Protected Attributes

DtDe & myDe
 
const std::string myName
 

Private Member Functions

 DtGpuOperation ()=delete
 
 DtGpuOperation (const DtGpuOperation &rhs)=delete
 
DtGpuOperation & operator= (const DtGpuOperation &rhs)=delete
 

Constructor & Destructor Documentation

makVrv::DtGpuOperation::DtGpuOperation ( const std::string &  name,
DtDe &  de 
)

Construct a named GPU operation associated with a drawing entity.

Parameters
nameHuman-readable name used for debugging and profiling.
deDrawing entity that owns or triggered this operation.
virtual makVrv::DtGpuOperation::~DtGpuOperation ( )
virtual

Destructor.

makVrv::DtGpuOperation::DtGpuOperation ( )
privatedelete

not allowed

makVrv::DtGpuOperation::DtGpuOperation ( const DtGpuOperation &  rhs)
privatedelete

not allowed

Member Function Documentation

DtGpuOperation& makVrv::DtGpuOperation::operator= ( const DtGpuOperation &  rhs)
privatedelete

not allowed

virtual void makVrv::DtGpuOperation::execute ( )
pure virtual
virtual void makVrv::DtGpuOperation::execute ( DtGpuArenaUploadState &  uploadState)
virtual

Execute this op with access to the per-frame upload-budget state. Default forwards to execute() and ignores the state. Override this in subclasses that need to participate in the upload budget or contribute to upload byte statistics.

Parameters
uploadStatePer-frame upload state for the current arena pass.

Reimplemented in makVrv::DtGlTextureOp.

Member Data Documentation

DtDe& makVrv::DtGpuOperation::myDe
protected

Drawing entity associated with this operation.

const std::string makVrv::DtGpuOperation::myName
protected

Human-readable name for debugging and profiling.


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)