RenderManAPI  24.0
RixShadingContext::Id Struct Reference

shadingCtxId is a unique identifier for this shading context. More...

#include <RixShading.h>

Public Member Functions

 Id ()
 
 Id (unsigned int i)
 
unsigned int Serialize () const
 
void Invalidate ()
 
bool IsValid () const
 

Public Attributes

short shadingCtxNum
 

Detailed Description

shadingCtxId is a unique identifier for this shading context.

Must be assigned to outgoing rays (RtRayGeometry) by integrators. RtRayGeometry can use this structure to convey the launching shading context through the ray tracing system. When a RtRayGeometry does not arise from a shading context, the Id is invalid.

Constructor & Destructor Documentation

◆ Id() [1/2]

RixShadingContext::Id::Id ( )
inline

◆ Id() [2/2]

RixShadingContext::Id::Id ( unsigned int  i)
inline

Member Function Documentation

◆ Invalidate()

void RixShadingContext::Id::Invalidate ( )
inline

References shadingCtxNum.

◆ IsValid()

bool RixShadingContext::Id::IsValid ( ) const
inline

References shadingCtxNum.

◆ Serialize()

unsigned int RixShadingContext::Id::Serialize ( ) const
inline

References shadingCtxNum.

Member Data Documentation

◆ shadingCtxNum

short RixShadingContext::Id::shadingCtxNum

Referenced by Invalidate(), IsValid(), and Serialize().


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