2#include <UnCompute/Backend/DeviceObjectBase.h>
3#include <UnCompute/Backend/ICommandList.h>
4#include <UnCompute/Backend/IFence.h>
11 CommandListState m_State = CommandListState::Invalid;
15 virtual ResultCode BeginInternal() = 0;
16 virtual ResultCode EndInternal() = 0;
17 virtual ResultCode ResetStateInternal() = 0;
18 virtual ResultCode SubmitInternal() = 0;
34 ResultCode
Submit()
override;
Definition: CommandListBase.h:9
void ResetState() override
Set the command list state to CommandListState::Initial.
Definition: CommandListBase.cpp:30
ResultCode Submit() override
Submit the command list and set the state to CommandListState::Pending.
Definition: CommandListBase.cpp:42
IFence * GetFence() override
Get the fence that is signaled after submit operation is complete.
Definition: CommandListBase.cpp:68
CommandListBuilder Begin() override
Set the command list state to CommandListState::Recording.
Definition: CommandListBase.cpp:12
Command list builder, used for device command recording.
Definition: ICommandList.h:131
Base class for all compute backend objects.
Definition: DeviceObjectBase.h:18
Interface for all backend-specific compute devices.
Definition: IComputeDevice.h:38
An interface for fences - synchronization primitives that can be either signaled or reset.
Definition: IFence.h:31
Shared smart pointer implementation that uses reference counting.
Definition: Ptr.h:44
Command list descriptor.
Definition: ICommandList.h:47