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

Method ParameterBlock

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

Source from the content-addressed store, hash-verified

250ParameterBlock::~ParameterBlock() {}
251
252ParameterBlock::ParameterBlock(ref<Device> pDevice, const ref<const ProgramReflection>& pReflector)
253 : mpDevice(pDevice.get()), mpProgramVersion(pReflector->getProgramVersion()), mpReflector(pReflector->getDefaultParameterBlock())
254{
255 FALCOR_GFX_CALL(mpDevice->getGfxDevice()->createMutableRootShaderObject(
256 pReflector->getProgramVersion()->getKernels(mpDevice, nullptr)->getGfxProgram(), mpShaderObject.writeRef()
257 ));
258 initializeResourceBindings();
259 createConstantBuffers(getRootVar());
260}
261
262ParameterBlock::ParameterBlock(
263 ref<Device> pDevice,

Callers

nothing calls this directly

Calls 4

getKernelsMethod · 0.80
writeRefMethod · 0.80
getRootVarFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected