32 #include "buffer_usage.h"
52 virtual void upload_data(
const GraphicContextPtr &gc,
const void *data,
int size) = 0;
55 virtual void copy_from(
const GraphicContextPtr &gc,
const StagingBufferPtr &buffer,
int dest_pos = 0,
int src_pos = 0,
int size = -1) = 0;
58 virtual void copy_to(
const GraphicContextPtr &gc,
const StagingBufferPtr &buffer,
int dest_pos = 0,
int src_pos = 0,
int size = -1) = 0;
Storage Buffer.
Definition: storage_buffer.h:42
std::shared_ptr< StorageBuffer > StorageBufferPtr
Definition: graphic_context.h:65
BufferUsage
Array Buffer usage enum.
Definition: buffer_usage.h:35
std::shared_ptr< StagingBuffer > StagingBufferPtr
Definition: element_array_buffer.h:37
Definition: buffer_usage.h:43
virtual void copy_to(const GraphicContextPtr &gc, const StagingBufferPtr &buffer, int dest_pos=0, int src_pos=0, int size=-1)=0
Copies data to transfer buffer.
static std::shared_ptr< StorageBuffer > create(const GraphicContextPtr &gc, int size, int stride, BufferUsage usage=usage_dynamic_draw)
Constructs a buffer.
virtual void copy_from(const GraphicContextPtr &gc, const StagingBufferPtr &buffer, int dest_pos=0, int src_pos=0, int size=-1)=0
Copies data from transfer buffer.
std::shared_ptr< GraphicContext > GraphicContextPtr
Definition: d3d_target.h:49
virtual void upload_data(const GraphicContextPtr &gc, const void *data, int size)=0
Uploads data to storage buffer.
Definition: Application/application.h:35