| 656 | } |
| 657 | |
| 658 | ref<UnorderedAccessView> ParameterBlock::getUav(const BindLocation& bindLocation) const |
| 659 | { |
| 660 | if (isUavType(bindLocation.getType())) |
| 661 | { |
| 662 | gfx::ShaderOffset gfxOffset = getGFXShaderOffset(bindLocation); |
| 663 | auto iter = mUAVs.find(gfxOffset); |
| 664 | if (iter == mUAVs.end()) |
| 665 | return nullptr; |
| 666 | return iter->second; |
| 667 | } |
| 668 | else |
| 669 | { |
| 670 | FALCOR_THROW("Error trying to get a UAV from a non UAV variable."); |
| 671 | } |
| 672 | } |
| 673 | |
| 674 | void ParameterBlock::setAccelerationStructure(const BindLocation& bindLocation, const ref<RtAccelerationStructure>& pAccl) |
| 675 | { |
nothing calls this directly
no test coverage detected