Class CommandQueueDX12
Inheritance
CommandQueueDX12
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/DirectX/DX12/CommandQueueDX12.h
Syntax
public class CommandQueueDX12
Constructors
~CommandQueueDX12()
Declaration
public ~CommandQueueDX12()
CommandQueueDX12(GPUDeviceDX12* device, D3D12_COMMAND_LIST_TYPE type)
Declaration
public CommandQueueDX12(GPUDeviceDX12* device, D3D12_COMMAND_LIST_TYPE type)
Parameters
GPUDeviceDX12
device
|
D3D12_COMMAND_LIST_TYPE
type
|
Methods
DiscardAllocator(uint64 fenceValueForReset, ID3D12CommandAllocator* allocator)
Discards used allocator.
Declaration
public void DiscardAllocator(uint64 fenceValueForReset, ID3D12CommandAllocator* allocator)
Parameters
uint64
fenceValueForReset
Sync fence value on reset event. |
ID3D12CommandAllocator
allocator
The allocator to discard. |
ExecuteCommandList(ID3D12CommandList* list)
Executes a command list.
Declaration
public uint64 ExecuteCommandList(ID3D12CommandList* list)
Parameters
ID3D12CommandList
list
The command list to execute. |
Returns
uint64
The fence value after execution (can be used to wait for it to sync parallel execution). |
GetAllocatorPool()
GetCommandQueue()
Declaration
public ID3D12CommandQueue* GetCommandQueue() const
Returns
ID3D12CommandQueue
|
GetSyncPoint()
Init()
Init resources
Declaration
public bool Init()
Returns
bool
True if cannot init, otherwise false |
IsReady()
Declaration
public bool IsReady() const
Returns
bool
|
Release()
Cleanup all stuff
Declaration
public void Release()
RequestAllocator()
Requests new clean allocator to use.
Declaration
public ID3D12CommandAllocator* RequestAllocator()
Returns
ID3D12CommandAllocator
The allocator. |
WaitForFence(uint64 fenceValue)
Stalls the execution on current thread to wait for the GPU to step over given fence value.
Declaration
public void WaitForFence(uint64 fenceValue)
Parameters
uint64
fenceValue
The fence value to wait. |
WaitForGPU()
Stalls the execution on current thread to wait for the GPU to finish it's job.
Declaration
public void WaitForGPU()