| 65 | } |
| 66 | |
| 67 | void D3D12DescriptorSet::setSrv(uint32_t rangeIndex, uint32_t descIndex, const ShaderResourceView* pSrv) |
| 68 | { |
| 69 | auto type = getRange(rangeIndex).type; |
| 70 | FALCOR_CHECK( |
| 71 | type == Type::TextureSrv || type == Type::RawBufferSrv || type == Type::TypedBufferSrv || type == Type::StructuredBufferSrv || |
| 72 | type == Type::AccelerationStructureSrv, |
| 73 | "Unexpected descriptor range type in setSrv()" |
| 74 | ); |
| 75 | setCpuHandle(rangeIndex, descIndex, pSrv->getNativeHandle().as<D3D12_CPU_DESCRIPTOR_HANDLE>()); |
| 76 | } |
| 77 | |
| 78 | void D3D12DescriptorSet::setUav(uint32_t rangeIndex, uint32_t descIndex, const UnorderedAccessView* pUav) |
| 79 | { |
nothing calls this directly
no test coverage detected