A buffer storing graphics related data. Created by GraphicsAdapter::CreateBuffer.
More...
#include <GraphicsBuffer.hpp>
|
| void | SetResourceState (GraphicsResourceState state) |
| | Set the resource state flag for internal referencing.
|
| |
| void | Init () override |
| | Run the initialization logic of this object. Should be overriden by deriving classes.
|
| |
A buffer storing graphics related data. Created by GraphicsAdapter::CreateBuffer.
◆ Destroy()
| void Faro::IObject::Destroy |
( |
| ) |
|
|
virtualinherited |
Run the destruction logic of this class. This also frees its memory.
- Warning
- When overriding, the super call must be performed last
Reimplemented in Faro::DataStream, Faro::DataStreamCopy, Faro::GraphicsBufferContainer, Faro::GraphicsSwapchain, Faro::GraphicsBufferVK, Faro::GraphicsCommandListVK, Faro::GraphicsFenceVK, Faro::GraphicsPipelineVK, Faro::GraphicsSemaphoreVK, and Faro::GraphicsSwapchainVK.
◆ GetAdapter()
◆ GetBufferType()
◆ GetDesc()
◆ GetResourceState()
Get the current resource state of this buffer.
- Returns
- GraphicsResourceState Current resource state
◆ GetTypedAdapter()
template<class T >
| T * Faro::IGraphicsAdapterChild::GetTypedAdapter |
( |
| ) |
|
|
inlineinherited |
◆ Init() [1/3]
| void Faro::IGraphicsAdapterChild::Init |
( |
| ) |
|
|
overrideprotectedvirtualinherited |
Run the initialization logic of this object. Should be overriden by deriving classes.
Reimplemented from Faro::IObject.
◆ Init() [2/3]
Initialize this as a child object for an adapter. Also invokes IObject::Init, derived classes should use that for initialization.
- Parameters
-
| adapter | Graphics adapter to initialize this child on. |
◆ Init() [3/3]
◆ SetResourceState()
Set the resource state flag for internal referencing.
- Parameters
-
◆ Upload()
| virtual void Faro::GraphicsBuffer::Upload |
( |
uint8 * |
data | ) |
|
|
pure virtual |
Prepare the given data so it can be uploaded to the graphics adapter. This buffer must be created as BT_Upload!
- Parameters
-
| data | Pointer to the data to upload |
Implemented in Faro::GraphicsBufferVK.
The documentation for this class was generated from the following files: