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

Function getHeap

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

Source from the content-addressed store, hash-verified

38D3D12_DESCRIPTOR_HEAP_TYPE falcorToDxDescType(D3D12DescriptorPool::Type t);
39
40static D3D12DescriptorHeap* getHeap(const D3D12DescriptorPool* pPool, D3D12DescriptorSet::Type type)
41{
42 auto dxType = falcorToDxDescType(type);
43 D3D12DescriptorHeap* pHeap = pPool->getApiData()->pHeaps[dxType].get();
44 FALCOR_ASSERT(pHeap);
45 FALCOR_ASSERT(pHeap->getType() == dxType);
46 return pHeap;
47}
48
49D3D12DescriptorSet::CpuHandle D3D12DescriptorSet::getCpuHandle(uint32_t rangeIndex, uint32_t descInRange) const
50{

Callers 2

D3D12DescriptorSetMethod · 0.85

Calls 3

falcorToDxDescTypeFunction · 0.85
getMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected