VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces | Macros | Typedefs | Functions
DtMaterial.h File Reference

Go to the source code of this file.

Classes

class  makVrv::DtMaterialUtils
 

Namespaces

 makVrv
 

Macros

#define CPU_SIDE_COMPILATION   1
 

Typedefs

typedef std::vector< Material > makVrv::DtIndirectMaterialVector
 

Functions

DT_DLL_VRVINDIRECTRENDERING
std::ostream & 
makVrv::operator<< (std::ostream &o, const Material &material)
 

Detailed Description

DtMaterial class declaration.

Macro Definition Documentation

#define CPU_SIDE_COMPILATION   1

structure that is packed for consumption by GPU for indirect rendering contains the material properties for a single geometry Each 'model' can have multiple multiple geometries 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)


Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)