Abstraction for OpenGL buffer objects.
More...
#include <ShaderStorageBuffer.hpp>
|
unsigned int | m_id |
| OpenGL handle.
|
|
int | m_index |
| Index of SSBO in shader.
|
|
Abstraction for OpenGL buffer objects.
Definition at line 20 of file ShaderStorageBuffer.hpp.
◆ ShaderStorageBuffer() [1/4]
galaxy::graphics::ShaderStorageBuffer::ShaderStorageBuffer |
( |
const int | index | ) |
|
◆ ShaderStorageBuffer() [2/4]
◆ ~ShaderStorageBuffer()
galaxy::graphics::ShaderStorageBuffer::~ShaderStorageBuffer |
( |
| ) |
|
◆ ShaderStorageBuffer() [3/4]
galaxy::graphics::ShaderStorageBuffer::ShaderStorageBuffer |
( |
| ) |
|
|
privatedelete |
◆ ShaderStorageBuffer() [4/4]
◆ operator=() [1/2]
◆ buffer()
template<typename Object >
void galaxy::graphics::ShaderStorageBuffer::buffer |
( |
const unsigned int | offset, |
|
|
const unsigned int | count, |
|
|
Object * | data ) |
|
inline |
Buffer data.
- Template Parameters
-
Object | The data structure to use with this buffer. |
- Parameters
-
offset | Offset to start adding buffer from. |
count | Number of objects in data. |
data | Pointer to the data to buffer. |
Definition at line 116 of file ShaderStorageBuffer.hpp.
◆ sub_buffer()
template<typename Object >
void galaxy::graphics::ShaderStorageBuffer::sub_buffer |
( |
const unsigned int | offset, |
|
|
const unsigned int | count, |
|
|
Object * | data ) |
|
inline |
Sub buffer data.
- Template Parameters
-
Object | The data structure to use with this buffer. |
- Parameters
-
offset | Offset to start adding buffer from. |
count | Number of objects in data. |
data | Pointer to the data to buffer. |
Definition at line 123 of file ShaderStorageBuffer.hpp.
◆ bind()
void galaxy::graphics::ShaderStorageBuffer::bind |
( |
| ) |
const |
◆ clear()
void galaxy::graphics::ShaderStorageBuffer::clear |
( |
| ) |
|
◆ id()
unsigned int galaxy::graphics::ShaderStorageBuffer::id |
( |
| ) |
const |
|
nodiscard |
◆ operator=() [2/2]
Copy assignment operator.
◆ m_id
unsigned int galaxy::graphics::ShaderStorageBuffer::m_id |
|
private |
◆ m_index
int galaxy::graphics::ShaderStorageBuffer::m_index |
|
private |
The documentation for this class was generated from the following files: