MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / setSrv

Method setSrv

Source/Falcor/Core/API/Shared/D3D12DescriptorSet.cpp:67–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void 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
78void D3D12DescriptorSet::setUav(uint32_t rangeIndex, uint32_t descIndex, const UnorderedAccessView* pUav)
79{

Callers

nothing calls this directly

Calls 1

getNativeHandleMethod · 0.45

Tested by

no test coverage detected