Represents a GPU uniform buffer for shader constant data.Provides an interface to create uniform buffers and update their contents. Designed to be implemented by backend-specific subclasses.
More...
#include <UniformBuffer.h>
|
| virtual | ~UniformBuffer ()=default |
| | Virtual destructor.
|
| virtual void | SetData (void *data, u32 size)=0 |
| | Updates the data stored in the uniform buffer.
|
Represents a GPU uniform buffer for shader constant data.
Provides an interface to create uniform buffers and update their contents. Designed to be implemented by backend-specific subclasses.
◆ ~UniformBuffer()
| virtual Raven::UniformBuffer::~UniformBuffer |
( |
| ) |
|
|
virtualdefault |
◆ Create()
Creates a uniform buffer of the given size.
- Parameters
-
| size | Size in bytes of the uniform buffer. |
- Returns
- Reference-counted pointer to the created UniformBuffer.
◆ SetData()
| virtual void Raven::UniformBuffer::SetData |
( |
void * | data, |
|
|
u32 | size ) |
|
pure virtual |
Updates the data stored in the uniform buffer.
- Parameters
-
| data | Pointer to the data to upload. |
| size | Size of the data in bytes. |
Implemented in Raven::VulkanUniformBuffer.
The documentation for this class was generated from the following files: