VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtInstance Class Reference

Notion of a 'GPU' instance has a relative transform to the cell/geometry (32 bits). More...

Public Member Functions

 DtInstance ()
 CTOR. More...
 
 DtInstance (const Matrix4_32 &xform)
 CTOR. More...
 

Protected Attributes

Matrix4_32 myXForm
 

Detailed Description

Notion of a 'GPU' instance has a relative transform to the cell/geometry (32 bits).

read/modified/used on the GPU (e.g. culling in compute shader). Transform may or may not be static. Id's are no longer held here, they are in the per geom per instance struct instead A DtInstance can be directly stored on the GPU (since its xform is 32 bit and its member layout is 4 byte-aligned such that its the exact same declaration in the shader. This is useful for things like indirect geometry. The layout of this class matches the equivalent structure in the indirect rendering shaders. Therefore, ***be CAREFUL if you extend/add variables to this class***, because you must change the corresponding structure in the shaders as well. Especially, be careful if you declare virtual methods/inherit this class (***best avoided***), because that will implicitly add 4/8 bytes for the vtable pointer that you need to account for in the shaders (not to mention, wasted GPU memory space)

Constructor & Destructor Documentation

makVrv::DtInstance::DtInstance ( )

CTOR.

makVrv::DtInstance::DtInstance ( const Matrix4_32 xform)

CTOR.

Member Data Documentation

Matrix4_32 makVrv::DtInstance::myXForm
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)