Function bindDescriptorHeaps

Synopsis

#include <Source/Falcor/Core/API/CopyContext.h>

void bindDescriptorHeaps()

Description

Bind the descriptor heaps from the device into the command list.

Source

Lines 37-52 in Source/Falcor/Core/API/D3D12/D3D12CopyContext.cpp. Line 142 in Source/Falcor/Core/API/CopyContext.h.

void CopyContext::bindDescriptorHeaps()
{
    const DescriptorPool* pGpuPool = gpDevice->getGpuDescriptorPool().get();
    const DescriptorPool::ApiData* pData = pGpuPool->getApiData();
    ID3D12DescriptorHeap* pHeaps[arraysize(pData->pHeaps)];
    uint32_t heapCount = 0;
    for (uint32_t i = 0; i < arraysize(pData->pHeaps); i++)
    {
        if (pData->pHeaps[i])
        {
            pHeaps[heapCount] = pData->pHeaps[i]->getApiHandle();
            heapCount++;
        }
    }
    mpLowLevelData->getCommandList()->SetDescriptorHeaps(heapCount, pHeaps);
}





Add Discussion as Guest

Log in to DocsForge