|
Blender V4.3
|
#include <gl_batch.hh>
Inherits Batch.
Public Member Functions | |
| GLIndexBuf * | elem_ () const |
| GLVertBuf * | verts_ (const int index) const |
| GLVertBuf * | inst_ (const int index) const |
| MEM_CXX_CLASS_ALLOC_FUNCS ("GLBatch") | |
Drawing | |
| void | draw (int v_first, int v_count, int i_first, int i_count) override |
| void | draw_indirect (GPUStorageBuf *indirect_buf, intptr_t offset) override |
| void | multi_draw_indirect (GPUStorageBuf *indirect_buf, int count, intptr_t offset, intptr_t stride) override |
| void | bind () |
Public Attributes | |
| GLVaoCache | vao_cache_ |
Definition at line 87 of file gl_batch.hh.
| void GLBatch::bind | ( | ) |
Definition at line 238 of file gl_batch.cc.
References blender::gpu::StateManager::apply_state(), blender::gpu::GLVaoCache::clear(), flag, blender::gpu::GLContext::get(), GPU_BATCH_DIRTY, blender::gpu::Context::state_manager, vao_cache_, and blender::gpu::GLVaoCache::vao_get().
Referenced by draw(), draw_indirect(), multi_draw_indirect(), and blender::gpu::GLDrawList::submit().
Definition at line 250 of file gl_batch.cc.
References bind(), BLI_assert, elem_(), GL_CHECK_RESOURCES, blender::gpu::IndexBuf::index_base_, blender::gpu::IndexBuf::index_type_, blender::gpu::GLIndexBuf::offset_ptr(), and blender::gpu::to_gl().
Referenced by blender::gpu::GLDrawList::submit().
|
override |
Definition at line 274 of file gl_batch.cc.
References bind(), elem_(), GL_CHECK_RESOURCES, blender::gpu::IndexBuf::index_type_, blender::gpu::to_gl(), and blender::gpu::unwrap().
|
inline |
Definition at line 103 of file gl_batch.hh.
Referenced by blender::gpu::GLDrawList::append(), draw(), draw_indirect(), multi_draw_indirect(), and blender::gpu::GLDrawList::submit().
Definition at line 111 of file gl_batch.hh.
| blender::gpu::GLBatch::MEM_CXX_CLASS_ALLOC_FUNCS | ( | "GLBatch" | ) |
|
override |
Definition at line 294 of file gl_batch.cc.
References bind(), count, elem_(), GL_CHECK_RESOURCES, blender::gpu::IndexBuf::index_type_, blender::gpu::to_gl(), and blender::gpu::unwrap().
Definition at line 107 of file gl_batch.hh.
References verts.
| GLVaoCache blender::gpu::GLBatch::vao_cache_ |
All vaos corresponding to all the GPUShaderInterface this batch was drawn with.
Definition at line 90 of file gl_batch.hh.
Referenced by bind().