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

Method getAccelerationStructure

Source/Falcor/Core/API/ParameterBlock.cpp:688–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688ref<RtAccelerationStructure> ParameterBlock::getAccelerationStructure(const BindLocation& bindLocation) const
689{
690 if (isAccelerationStructureType(bindLocation.getType()))
691 {
692 gfx::ShaderOffset gfxOffset = getGFXShaderOffset(bindLocation);
693 auto iter = mAccelerationStructures.find(gfxOffset);
694 if (iter == mAccelerationStructures.end())
695 return nullptr;
696 return iter->second;
697 }
698 else
699 {
700 FALCOR_THROW("Error trying to get an acceleration structure from a non acceleration structure variable.");
701 }
702}
703
704//
705// Sampler

Callers

nothing calls this directly

Calls 4

getGFXShaderOffsetFunction · 0.85
getTypeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected