| 624 | } |
| 625 | |
| 626 | ref<ShaderResourceView> ParameterBlock::getSrv(const BindLocation& bindLocation) const |
| 627 | { |
| 628 | if (isSrvType(bindLocation.getType())) |
| 629 | { |
| 630 | gfx::ShaderOffset gfxOffset = getGFXShaderOffset(bindLocation); |
| 631 | auto iter = mSRVs.find(gfxOffset); |
| 632 | if (iter == mSRVs.end()) |
| 633 | return nullptr; |
| 634 | return iter->second; |
| 635 | } |
| 636 | else |
| 637 | { |
| 638 | FALCOR_THROW("Error trying to get an SRV from a non SRV variable."); |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | void ParameterBlock::setUav(const BindLocation& bindLocation, const ref<UnorderedAccessView>& pUav) |
| 643 | { |
nothing calls this directly
no test coverage detected