Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
RenderMask Struct Reference

Per-surface mask allowing it to be ignored by some ray types. More...

Public Member Functions

 RenderMask (const uint32_t value=0)
 
 operator uint32_t () const
 

Public Attributes

uint32_t value = 0
 

Static Public Attributes

static const uint32_t ALL_GEOMETRY = 0xFFFFFFFF
 
static const uint32_t DYNAMIC_GEOMETRY = 2
 
static const uint32_t STATIC_GEOMETRY = 1
 

Detailed Description

Per-surface mask allowing it to be ignored by some ray types.

In OptiX, this is limited to 8 bits. We use the first two for static and dynamic objects and reserve the rest for future use.

Constructor & Destructor Documentation

◆ RenderMask()

RenderMask::RenderMask ( const uint32_t  value = 0)
inline

Member Function Documentation

◆ operator uint32_t()

RenderMask::operator uint32_t ( ) const
inline

Member Data Documentation

◆ ALL_GEOMETRY

const uint32_t RenderMask::ALL_GEOMETRY = 0xFFFFFFFF
static

◆ DYNAMIC_GEOMETRY

const uint32_t RenderMask::DYNAMIC_GEOMETRY = 2
static

◆ STATIC_GEOMETRY

const uint32_t RenderMask::STATIC_GEOMETRY = 1
static

◆ value

uint32_t RenderMask::value = 0

documentation generated on Wed Nov 24 2021 08:01:52 using doxygen 1.8.15