| 686 | } |
| 687 | |
| 688 | ref<RtAccelerationStructure> ParameterBlock::getAccelerationStructure(const BindLocation& bindLocation) const |
| 689 | { |
| 690 | if (isAccelerationStructureType(bindLocation.getType())) |
| 691 | { |
| 692 | gfx::ShaderOffset gfxOffset = getGFXShaderOffset(bindLocation); |
| 693 | auto iter = mAccelerationStructures.find(gfxOffset); |
| 694 | if (iter == mAccelerationStructures.end()) |
| 695 | return nullptr; |
| 696 | return iter->second; |
| 697 | } |
| 698 | else |
| 699 | { |
| 700 | FALCOR_THROW("Error trying to get an acceleration structure from a non acceleration structure variable."); |
| 701 | } |
| 702 | } |
| 703 | |
| 704 | // |
| 705 | // Sampler |
nothing calls this directly
no test coverage detected