Particles/Compute.cpp
//-----------------------------------------------------------------------------
// creates a command queue with the intel extension if available
//-----------------------------------------------------------------------------
creates a command queue with the intel extension if available
creates a command queue with the intel extension if available
void Compute::CreateCommandQueue()
{
    D3D12_COMMAND_QUEUE_DESC desc = {};
    desc.Type = D3D12_COMMAND_LIST_TYPE_COMPUTE;
    desc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE;
    if (m_usingIntelCommandQueueExtension)
    {
        m_commandQueue = m_pExtensionHelper->CreateCommandQueue(desc);
    }
    else
    {
        ThrowIfFailed(m_device->CreateCommandQueue(&desc, IID_PPV_ARGS(&m_commandQueue)));
    }
}
void Compute :: CreateCommandQueue ( ) { D3D12_COMMAND_QUEUE_DESC desc = { } ; desc . Type = D3D12_COMMAND_LIST_TYPE_COMPUTE ; desc . Flags = D3D12_COMMAND_QUEUE_FLAG_NONE ; if ( m_usingIntelCommandQueueExtension ) { m_commandQueue = m_pExtensionHelper -> CreateCommandQueue ( desc ) ; } else { ThrowIfFailed ( m_device -> CreateCommandQueue ( & desc , IID_PPV_ARGS ( & m_commandQueue ) ) ) ; } }
creates a command queue with the intel extension if available
creates a command queue with the intel extension if available