MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getHitGroupOffset

Function getHitGroupOffset

Source/Falcor/Core/Program/RtBindingTable.h:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 return offset;
135 }
136 uint32_t getHitGroupOffset(uint32_t rayType, uint32_t geometryID) const
137 {
138 FALCOR_ASSERT(rayType < mRayTypeCount && geometryID < mGeometryCount);
139 uint32_t offset = 1 + mMissCount + geometryID * mRayTypeCount + rayType;
140 FALCOR_ASSERT(offset < mShaderTable.size());
141 return offset;
142 }
143
144 // Internal state
145 uint32_t mMissCount = 0; ///< Number of miss shaders.

Callers 2

getHitGroupFunction · 0.85
setHitGroupMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected