RenderMan  26.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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

Member Function Documentation

void RixShadingContext::Id::Invalidate ( )
inline

References shadingCtxNum.

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

References shadingCtxNum.

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

References shadingCtxNum.

Member Data Documentation

short RixShadingContext::Id::shadingCtxNum

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


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