A buffer contaning a single structure.
More...
#include <Buffer.h>
Inherits gpu::BufferView.
|
| T & | edit () |
| | Mark data as dirty and get a writeable reference to the stored structure. More...
|
| |
| const T & | get () const |
| |
|
| template<class U > |
| static BufferPointer | makeBuffer (uint32_t usage=gpu::Buffer::UniformBuffer) |
| | Creates a new buffer containing a give structure. More...
|
| |
template<class T>
class gpu::StructBuffer< T >
A buffer contaning a single structure.
Typically used for uniforms.
- Template Parameters
-
| T | Type of the structure that the buffer contains. |
◆ edit()
Mark data as dirty and get a writeable reference to the stored structure.
- Returns
- Writeable reference to the stored structure.
◆ get()
- Returns
- Read-only reference to the stored structure.
◆ makeBuffer()
template<class T >
template<class U >
| static BufferPointer gpu::StructBuffer< T >::makeBuffer |
( |
uint32_t |
usage = gpu::Buffer::UniformBuffer | ) |
|
|
inlinestatic |
Creates a new buffer containing a give structure.
Typically used for uniforms.
- Template Parameters
-
| U | Type of the structure that the buffer contains. |
- Parameters
-
| usage | A bit sum of Buffer::Usage flags describing this buffer. |
- Returns
- Shared pointer to the created buffer.
The documentation for this class was generated from the following file: