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

Method prepareDescriptorSets

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

Source from the content-addressed store, hash-verified

801}
802
803bool ParameterBlock::prepareDescriptorSets(CopyContext* pCopyContext)
804{
805 // Insert necessary resource barriers for bound resources.
806 for (auto& srv : mSRVs)
807 {
808 prepareResource(pCopyContext, srv.second ? srv.second->getResource() : nullptr, false);
809 }
810 for (auto& uav : mUAVs)
811 {
812 prepareResource(pCopyContext, uav.second ? uav.second->getResource() : nullptr, true);
813 }
814 for (auto& subObj : this->mParameterBlocks)
815 {
816 subObj.second->prepareDescriptorSets(pCopyContext);
817 }
818 return true;
819}
820
821void ParameterBlock::collectSpecializationArgs(SpecializationArgs& ioArgs) const {}
822

Callers 4

raytraceMethod · 0.80
drawCallCommonMethod · 0.80
dispatchMethod · 0.80
dispatchIndirectMethod · 0.80

Calls 1

getResourceMethod · 0.45

Tested by

no test coverage detected