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

Method setHitGroup

Source/Falcor/Core/Program/RtBindingTable.cpp:69–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void RtBindingTable::setHitGroup(uint32_t rayType, uint32_t geometryID, ShaderID shaderID)
70{
71 FALCOR_CHECK(rayType < mRayTypeCount, "'rayType' is out of range");
72 FALCOR_CHECK(geometryID < mGeometryCount, "'geometryID' is out of range");
73 mShaderTable[getHitGroupOffset(rayType, geometryID)] = shaderID;
74}
75
76void RtBindingTable::setHitGroup(uint32_t rayType, const std::vector<uint32_t>& geometryIDs, ShaderID shaderID)
77{

Callers 7

TracePassMethod · 0.80
setSceneMethod · 0.80
setSceneMethod · 0.80
executeRaytraceMethod · 0.80
executeRaytraceMethod · 0.80
sceneChangedMethod · 0.80
loadSceneMethod · 0.80

Calls 3

getHitGroupOffsetFunction · 0.85
setHitGroupFunction · 0.85
getMethod · 0.45

Tested by 1

sceneChangedMethod · 0.64