Function getApiCommandQueueType

Synopsis

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

ApiCommandQueueType getApiCommandQueueType(LowLevelContextData::CommandQueueType type) const

Description

Get the API queue type.

Returns
API queue type, or throws an exception if type is unknown.

Source

Lines 284-297 in Source/Falcor/Core/API/D3D12/D3D12Device.cpp. Line 122 in Source/Falcor/Core/API/Device.h.

ApiCommandQueueType Device::getApiCommandQueueType(LowLevelContextData::CommandQueueType type) const
{
    switch (type)
    {
    case LowLevelContextData::CommandQueueType::Copy:
        return D3D12_COMMAND_LIST_TYPE_COPY;
    case LowLevelContextData::CommandQueueType::Compute:
        return D3D12_COMMAND_LIST_TYPE_COMPUTE;
    case LowLevelContextData::CommandQueueType::Direct:
        return D3D12_COMMAND_LIST_TYPE_DIRECT;
    default:
        throw std::exception("Unknown command queue type");
    }
}





Add Discussion as Guest

Log in