Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::ShaderBufferDescriptor Struct Reference

#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.
 

Detailed Description

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.

Member Data Documentation

◆ _bufferParams

BufferParams Divide::ShaderBufferDescriptor::_bufferParams

Definition at line 102 of file ShaderBuffer.h.

◆ _initialData

std::pair<bufferPtr, size_t> Divide::ShaderBufferDescriptor::_initialData {nullptr, 0u}

Definition at line 103 of file ShaderBuffer.h.

◆ _name

string Divide::ShaderBufferDescriptor::_name { "" }

Definition at line 104 of file ShaderBuffer.h.

◆ _ringBufferLength

U16 Divide::ShaderBufferDescriptor::_ringBufferLength { 1u }

Definition at line 105 of file ShaderBuffer.h.

◆ _separateReadWrite

bool Divide::ShaderBufferDescriptor::_separateReadWrite { false }

Use a separate read/write index based on queue length.

Definition at line 106 of file ShaderBuffer.h.


The documentation for this struct was generated from the following file: