Definition GraphicsAdapter.hpp:27
A buffer storing graphics related data. Created by GraphicsAdapter::CreateBuffer.
Definition GraphicsBuffer.hpp:20
virtual void Upload(uint8 *data)=0
Prepare the given data so it can be uploaded to the graphics adapter. This buffer must be created as ...
GraphicsResourceState GetResourceState()
Get the current resource state of this buffer.
Definition GraphicsBuffer.cpp:22
const GraphicsBufferDesc & GetDesc()
Get the description of this buffer.
Definition GraphicsBuffer.cpp:5
GraphicsBufferType GetBufferType()
Definition GraphicsBuffer.cpp:10
void SetResourceState(GraphicsResourceState state)
Set the resource state flag for internal referencing.
Definition GraphicsBuffer.cpp:27
Definition GraphicsAdapterChild.hpp:9
void Init() override
Run the initialization logic of this object. Should be overriden by deriving classes.
Definition GraphicsAdapterChild.cpp:16
GraphicsResourceState
Describes the state of a graphics buffer.
Definition GraphicsBuffer.hpp:9
@ RS_Unknown
Unknown state. The buffer must be transitioned into another state before usage.
Definition GraphicsBuffer.hpp:10
@ RS_ShaderResource
Allows the buffer to be used as a shader resource.
Definition GraphicsBuffer.hpp:14
@ RS_Present
Marks a rendertarget buffer read for presentation by its swapchain.
Definition GraphicsBuffer.hpp:15
@ RS_CopySource
Source buffer for a copy operation.
Definition GraphicsBuffer.hpp:11
@ RS_CopyDestination
Destination buffer for a copy operation.
Definition GraphicsBuffer.hpp:12
@ RS_RenderTarget
Allows the buffer to be used as a rendertarget.
Definition GraphicsBuffer.hpp:13
GraphicsBufferType
Determines the type of a graphics buffer.
Definition GraphicsBufferDesc.hpp:84
uint8_t uint8
Definition Primitives.hpp:6
Definition GraphicsBufferDesc.hpp:90
Description of a graphics buffer.
Definition GraphicsBufferDesc.hpp:20