Blender
V3.3
|
#include <gpu_storage_buffer_private.hh>
Public Member Functions | |
StorageBuf (size_t size, const char *name) | |
virtual | ~StorageBuf () |
virtual void | update (const void *data)=0 |
virtual void | bind (int slot)=0 |
virtual void | unbind ()=0 |
virtual void | clear (eGPUTextureFormat internal_format, eGPUDataFormat data_format, void *data)=0 |
virtual void | copy_sub (VertBuf *src, uint dst_offset, uint src_offset, uint copy_size)=0 |
Protected Attributes | |
size_t | size_in_bytes_ |
void * | data_ = nullptr |
char | name_ [DEBUG_NAME_LEN] |
Implementation of Storage Buffers. Base class which is then specialized for each implementation (GL, VK, ...).
Definition at line 27 of file gpu_storage_buffer_private.hh.
blender::gpu::StorageBuf::StorageBuf | ( | size_t | size, |
const char * | name | ||
) |
Definition at line 29 of file gpu_storage_buffer.cc.
References BLI_assert, BLI_strncpy(), name_, size(), and size_in_bytes_.
|
virtual |
Definition at line 39 of file gpu_storage_buffer.cc.
References data_, and MEM_SAFE_FREE.
|
pure virtual |
Implemented in blender::gpu::GLStorageBuf.
|
pure virtual |
Implemented in blender::gpu::GLStorageBuf.
|
pure virtual |
Implemented in blender::gpu::GLStorageBuf.
|
pure virtual |
Implemented in blender::gpu::GLStorageBuf.
Implemented in blender::gpu::GLStorageBuf.
Referenced by GPU_storagebuf_create_ex().
|
protected |
Continuous memory block to copy to GPU. This data is owned by the StorageBuf.
Definition at line 32 of file gpu_storage_buffer_private.hh.
Referenced by blender::gpu::GLStorageBuf::bind(), and ~StorageBuf().
|
protected |
Debugging name
Definition at line 34 of file gpu_storage_buffer_private.hh.
Referenced by blender::gpu::GLStorageBuf::bind(), and StorageBuf().
|
protected |
Data size in bytes.
Definition at line 30 of file gpu_storage_buffer_private.hh.
Referenced by StorageBuf(), and blender::gpu::GLStorageBuf::update().