RenderMan API  23.0
RixShadingContext::Id Struct Reference

#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.

Definition at line 614 of file RixShading.h.

Constructor & Destructor Documentation

◆ Id() [1/2]

RixShadingContext::Id::Id ( )
inline

Definition at line 616 of file RixShading.h.

◆ Id() [2/2]

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

Definition at line 618 of file RixShading.h.

Member Function Documentation

◆ Invalidate()

void RixShadingContext::Id::Invalidate ( )
inline

Definition at line 625 of file RixShading.h.

◆ IsValid()

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

Definition at line 629 of file RixShading.h.

◆ Serialize()

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

Definition at line 621 of file RixShading.h.

Member Data Documentation

◆ shadingCtxNum

short RixShadingContext::Id::shadingCtxNum

Definition at line 633 of file RixShading.h.


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