UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
D3D12Queue.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "D3D12RHICommon.h"
7#include "RHIPipeline.h"
8
9// Defines a unique command queue type within a FD3D12Device (owner by the command list managers).
11{
12 Direct = 0,
13 Copy,
14 Async,
15
16 Count,
17};
18
19static constexpr uint32 GD3D12MaxNumQueues = MAX_NUM_GPUS * (uint32)ED3D12QueueType::Count;
20
30
32{
33 switch (QueueType)
34 {
35 default: checkNoEntry(); // fallthrough
36 case ED3D12QueueType::Direct: return TEXT("3D");
37 case ED3D12QueueType::Async: return TEXT("Compute");
38 case ED3D12QueueType::Copy: return TEXT("Copy");
39 }
40}
41
52
53// TODO: move FD3D12Queue here
#define checkNoEntry()
Definition AssertionMacros.h:316
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const TCHAR * GetD3DCommandQueueTypeName(ED3D12QueueType QueueType)
Definition D3D12Queue.h:31
ED3D12QueueType GetD3DCommandQueueType(ERHIPipeline Pipeline)
Definition D3D12Queue.h:21
D3D12_COMMAND_LIST_TYPE GetD3DCommandListType(ED3D12QueueType QueueType)
Definition D3D12Queue.h:42
ED3D12QueueType
Definition D3D12Queue.h:11
#define MAX_NUM_GPUS
Definition MultiGPU.h:25
ERHIPipeline
Definition RHIPipeline.h:13
#define D3D12RHI_PLATFORM_COPY_COMMAND_LIST_TYPE
Definition WindowsD3D12RHIDefinitions.h:12
uint32_t uint32
Definition binka_ue_file_header.h:6