|
Blender V4.3
|
#include <gl_index_buffer.hh>
Inherits blender::gpu::IndexBuf.
Public Member Functions | |
| ~GLIndexBuf () | |
| void | bind () |
| void | bind_as_ssbo (uint binding) override |
| void | read (uint32_t *data) const override |
| void * | offset_ptr (uint additional_vertex_offset) const |
| GLuint | restart_index () const |
| void | upload_data () override |
| void | update_sub (uint start, uint len, const void *data) override |
Public Member Functions inherited from blender::gpu::IndexBuf | |
| IndexBuf () | |
| virtual | ~IndexBuf () |
| void | init (uint indices_len, uint32_t *indices, uint min_index, uint max_index, GPUPrimType prim_type, bool uses_restart_indices) |
| void | init_subrange (IndexBuf *elem_src, uint start, uint length) |
| void | init_build_on_device (uint index_len) |
| uint32_t | index_len_get () const |
| uint32_t | index_start_get () const |
| uint32_t | index_base_get () const |
| bool | is_32bit () const |
| size_t | size_get () const |
| bool | is_init () const |
Friends | |
| class | GLBatch |
| class | GLDrawList |
| class | GLShader |
Additional Inherited Members | ||
Protected Attributes inherited from blender::gpu::IndexBuf | ||
| GPUIndexBufType | index_type_ = GPU_INDEX_U32 | |
| uint32_t | index_start_ = 0 | |
| uint32_t | index_len_ = 0 | |
| uint32_t | index_base_ = 0 | |
| bool | is_init_ = false | |
| bool | is_subrange_ = false | |
| bool | is_empty_ = false | |
| union { | ||
| void * data_ = nullptr | ||
| IndexBuf * src_ | ||
| }; | ||
Definition at line 19 of file gl_index_buffer.hh.
| blender::gpu::GLIndexBuf::~GLIndexBuf | ( | ) |
Definition at line 15 of file gl_index_buffer.cc.
References blender::gpu::GLContext::buf_free().
| void blender::gpu::GLIndexBuf::bind | ( | ) |
Definition at line 20 of file gl_index_buffer.cc.
References bind(), ceil_to_multiple_ul(), blender::gpu::IndexBuf::data_, blender::gpu::IndexBuf::is_subrange_, MEM_SAFE_FREE, blender::gpu::IndexBuf::size_get(), and blender::gpu::IndexBuf::src_.
Referenced by bind(), bind_as_ssbo(), and upload_data().
|
overridevirtual |
Implements blender::gpu::IndexBuf.
Definition at line 48 of file gl_index_buffer.cc.
References bind(), BLI_assert, blender::gpu::GLContext::bound_ssbo_slots, blender::gpu::IndexBuf::data_, and blender::gpu::GLContext::get().
|
inline |
Definition at line 35 of file gl_index_buffer.hh.
References blender::gpu::GPU_INDEX_U32, blender::gpu::IndexBuf::index_start_, and blender::gpu::IndexBuf::index_type_.
Referenced by blender::gpu::GLBatch::draw().
|
overridevirtual |
Implements blender::gpu::IndexBuf.
Definition at line 71 of file gl_index_buffer.cc.
References BLI_assert, and blender::gpu::IndexBuf::size_get().
|
inline |
Definition at line 44 of file gl_index_buffer.hh.
References blender::gpu::GPU_INDEX_U16, and blender::gpu::IndexBuf::index_type_.
|
overridevirtual |
Implements blender::gpu::IndexBuf.
Definition at line 94 of file gl_index_buffer.cc.
References len.
|
overridevirtual |
Implements blender::gpu::IndexBuf.
Definition at line 89 of file gl_index_buffer.cc.
References bind().
|
friend |
Definition at line 20 of file gl_index_buffer.hh.
|
friend |
Definition at line 21 of file gl_index_buffer.hh.
|
friend |
Definition at line 22 of file gl_index_buffer.hh.