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

Method setCpuHandle

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

Source from the content-addressed store, hash-verified

58}
59
60void D3D12DescriptorSet::setCpuHandle(uint32_t rangeIndex, uint32_t descIndex, const CpuHandle& handle)
61{
62 auto dstHandle = getCpuHandle(rangeIndex, descIndex);
63 ID3D12Device* pD3D12Device = mpDevice->getNativeHandle().as<ID3D12Device*>();
64 pD3D12Device->CopyDescriptorsSimple(1, dstHandle, handle, falcorToDxDescType(getRange(rangeIndex).type));
65}
66
67void D3D12DescriptorSet::setSrv(uint32_t rangeIndex, uint32_t descIndex, const ShaderResourceView* pSrv)
68{

Callers

nothing calls this directly

Calls 2

falcorToDxDescTypeFunction · 0.85
getNativeHandleMethod · 0.45

Tested by

no test coverage detected