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

Method getSrv

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

Source from the content-addressed store, hash-verified

624}
625
626ref<ShaderResourceView> ParameterBlock::getSrv(const BindLocation& bindLocation) const
627{
628 if (isSrvType(bindLocation.getType()))
629 {
630 gfx::ShaderOffset gfxOffset = getGFXShaderOffset(bindLocation);
631 auto iter = mSRVs.find(gfxOffset);
632 if (iter == mSRVs.end())
633 return nullptr;
634 return iter->second;
635 }
636 else
637 {
638 FALCOR_THROW("Error trying to get an SRV from a non SRV variable.");
639 }
640}
641
642void ParameterBlock::setUav(const BindLocation& bindLocation, const ref<UnorderedAccessView>& pUav)
643{

Callers

nothing calls this directly

Calls 4

isSrvTypeFunction · 0.85
getGFXShaderOffsetFunction · 0.85
getTypeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected