| 250 | ParameterBlock::~ParameterBlock() {} |
| 251 | |
| 252 | ParameterBlock::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 | |
| 262 | ParameterBlock::ParameterBlock( |
| 263 | ref<Device> pDevice, |
nothing calls this directly
no test coverage detected