Blender
V3.3
|
#include <gl_uniform_buffer.hh>
Public Member Functions | |
Creation & Deletion | |
GLUniformBuf (size_t size, const char *name) | |
~GLUniformBuf () | |
Usage | |
void | bind (int slot) override |
void | unbind () override |
![]() | |
UniformBuf (size_t size, const char *name) | |
virtual | ~UniformBuf () |
void | attach_data (void *data) |
Data upload / update | |
void | update (const void *data) override |
Additional Inherited Members | |
![]() | |
size_t | size_in_bytes_ |
void * | data_ = nullptr |
char | name_ [DEBUG_NAME_LEN] |
Implementation of Uniform Buffers using OpenGL.
Definition at line 22 of file gl_uniform_buffer.hh.
blender::gpu::GLUniformBuf::GLUniformBuf | ( | size_t | size, |
const char * | name | ||
) |
Definition at line 21 of file gl_uniform_buffer.cc.
References BLI_assert, blender::gpu::GLContext::max_ubo_size, and size().
blender::gpu::GLUniformBuf::~GLUniformBuf | ( | ) |
Definition at line 27 of file gl_uniform_buffer.cc.
References blender::gpu::GLContext::buf_free().
|
overridevirtual |
Implements blender::gpu::UniformBuf.
Definition at line 65 of file gl_uniform_buffer.cc.
References BLI_assert, blender::gpu::GLContext::bound_ubo_slots, blender::gpu::UniformBuf::data_, blender::gpu::GLContext::get(), blender::gpu::GLContext::max_ubo_binds, MEM_SAFE_FREE, blender::gpu::UniformBuf::name_, and update().
|
overridevirtual |
Implements blender::gpu::UniformBuf.
Definition at line 94 of file gl_uniform_buffer.cc.
References blender::gpu::GLContext::bound_ubo_slots, and blender::gpu::GLContext::get().
Implements blender::gpu::UniformBuf.
Definition at line 49 of file gl_uniform_buffer.cc.
References data, and blender::gpu::UniformBuf::size_in_bytes_.
Referenced by bind().