![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <ShaderBuffer.h>
Public Attributes | |
BufferParams | _bufferParams |
std::pair< bufferPtr, size_t > | _initialData {nullptr, 0u} |
string | _name { "" } |
U16 | _ringBufferLength { 1u } |
bool | _separateReadWrite { false } |
Use a separate read/write index based on queue length. | |
If initialData is NULL, the buffer contents are undefined (good for CPU -> GPU transfers), however for GPU->GPU buffers, we may want a sane initial state to work with. If _initialData is not NULL, we zero out whatever empty space is left available determined by comparing the data size to the buffer size
Definition at line 101 of file ShaderBuffer.h.
BufferParams Divide::ShaderBufferDescriptor::_bufferParams |
Definition at line 102 of file ShaderBuffer.h.
std::pair<bufferPtr, size_t> Divide::ShaderBufferDescriptor::_initialData {nullptr, 0u} |
Definition at line 103 of file ShaderBuffer.h.
string Divide::ShaderBufferDescriptor::_name { "" } |
Definition at line 104 of file ShaderBuffer.h.
U16 Divide::ShaderBufferDescriptor::_ringBufferLength { 1u } |
Definition at line 105 of file ShaderBuffer.h.
bool Divide::ShaderBufferDescriptor::_separateReadWrite { false } |
Use a separate read/write index based on queue length.
Definition at line 106 of file ShaderBuffer.h.