|
| UniformBuffer (size_t count, UniformFrequency usage, const std::string &name) |
|
T & | operator[] (size_t i) |
|
const T & | operator[] (size_t i) const |
|
T & | at (size_t i) |
|
const T & | at (size_t i) const |
|
size_t | size () const |
|
bool | upload () |
|
UniformBuffer & | operator= (const UniformBuffer &)=delete |
|
| UniformBuffer (const UniformBuffer &)=delete |
|
UniformBuffer & | operator= (UniformBuffer &&)=default |
|
| UniformBuffer (UniformBuffer &&)=default |
|
| ~UniformBuffer ()=default |
|
| UniformBufferBase (size_t sizeInBytes, UniformFrequency use, const std::string &name) |
|
bool | upload (unsigned char *data) |
|
void | clean () |
|
size_t | currentOffset () const |
|
size_t | baseSize () const |
|
UniformBufferBase & | operator= (const UniformBufferBase &)=delete |
|
| UniformBufferBase (const UniformBufferBase &)=delete |
|
UniformBufferBase & | operator= (UniformBufferBase &&)=delete |
|
| UniformBufferBase (UniformBufferBase &&)=delete |
|
virtual | ~UniformBufferBase () |
|
| Buffer (size_t sizeInBytes, BufferType atype, const std::string &name) |
|
void | upload (size_t sizeInBytes, unsigned char *data, size_t offset) |
|
template<typename T > |
void | upload (const std::vector< T > &data, size_t offset=0) |
|
void | download (size_t sizeInBytes, unsigned char *data, size_t offset) |
|
void | clean () |
|
const std::string & | name () const |
|
Buffer & | operator= (const Buffer &)=delete |
|
| Buffer (const Buffer &)=delete |
|
Buffer & | operator= (Buffer &&)=delete |
|
| Buffer (Buffer &&)=delete |
|
virtual | ~Buffer () |
|
template<typename T>
class UniformBuffer< T >
Represents a buffer containing uniform data, stored on the CPU and GPU. Depending on the update frequency of the CPU data, the buffer will maintain one or multiple copies of the data on the GPU.