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

Method getUav

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

Source from the content-addressed store, hash-verified

656}
657
658ref<UnorderedAccessView> ParameterBlock::getUav(const BindLocation& bindLocation) const
659{
660 if (isUavType(bindLocation.getType()))
661 {
662 gfx::ShaderOffset gfxOffset = getGFXShaderOffset(bindLocation);
663 auto iter = mUAVs.find(gfxOffset);
664 if (iter == mUAVs.end())
665 return nullptr;
666 return iter->second;
667 }
668 else
669 {
670 FALCOR_THROW("Error trying to get a UAV from a non UAV variable.");
671 }
672}
673
674void ParameterBlock::setAccelerationStructure(const BindLocation& bindLocation, const ref<RtAccelerationStructure>& pAccl)
675{

Callers

nothing calls this directly

Calls 4

isUavTypeFunction · 0.85
getGFXShaderOffsetFunction · 0.85
getTypeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected