| 672 | } |
| 673 | |
| 674 | void ParameterBlock::setAccelerationStructure(const BindLocation& bindLocation, const ref<RtAccelerationStructure>& pAccl) |
| 675 | { |
| 676 | if (isAccelerationStructureType(bindLocation.getType())) |
| 677 | { |
| 678 | gfx::ShaderOffset gfxOffset = getGFXShaderOffset(bindLocation); |
| 679 | mAccelerationStructures[gfxOffset] = pAccl; |
| 680 | FALCOR_GFX_CALL(mpShaderObject->setResource(gfxOffset, pAccl ? pAccl->getGfxAccelerationStructure() : nullptr)); |
| 681 | } |
| 682 | else |
| 683 | { |
| 684 | FALCOR_THROW("Error trying to bind an acceleration structure to a non acceleration structure variable."); |
| 685 | } |
| 686 | } |
| 687 | |
| 688 | ref<RtAccelerationStructure> ParameterBlock::getAccelerationStructure(const BindLocation& bindLocation) const |
| 689 | { |
nothing calls this directly
no test coverage detected