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>
Inherits Raven::RefCounted.
Inherited by Raven::VulkanUniformBuffer.
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 |
◆ Clear()
| virtual void Raven::UniformBuffer::Clear |
( |
| ) |
|
|
pure virtual |
◆ 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.
◆ Release()
| virtual void Raven::UniformBuffer::Release |
( |
| ) |
|
|
pure virtual |
◆ SetData()
| virtual void Raven::UniformBuffer::SetData |
( |
void * | data, |
|
|
usize | 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: