18 #ifndef __H__OCULAR_GRAPHICS_GPU_BUFFER__H__
19 #define __H__OCULAR_GRAPHICS_GPU_BUFFER__H__
40 enum class GPUBufferAccess
51 enum class GPUBufferStage
67 GPUBufferAccess cpuAccess;
68 GPUBufferAccess gpuAccess;
106 virtual bool build(
void const* source);
119 virtual bool read(
void* destination, uint32_t start, uint32_t size);
132 virtual bool write(
void const* source, uint32_t start, uint32_t size);
virtual bool read(void *destination, uint32_t start, uint32_t size)
Definition: GPUBuffer.cpp:75
virtual void unbind()
Definition: GPUBuffer.cpp:65
virtual bool build(void const *source)
Definition: GPUBuffer.cpp:70
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
A generic buffer that can be uploaded to the GPU.
Definition: GPUBuffer.hpp:81
Definition: GPUBuffer.hpp:62
virtual void bind()
Definition: GPUBuffer.cpp:60
GPUBufferDescriptor const & getDescriptor() const
Definition: GPUBuffer.cpp:85
virtual bool write(void const *source, uint32_t start, uint32_t size)
Definition: GPUBuffer.cpp:80