Blender  V3.3
Public Member Functions | Friends | List of all members
blender::gpu::GLIndexBuf Class Reference

#include <gl_index_buffer.hh>

Inheritance diagram for blender::gpu::GLIndexBuf:
blender::gpu::IndexBuf

Public Member Functions

 ~GLIndexBuf ()
 
void bind ()
 
void bind_as_ssbo (uint binding) override
 
const uint32_tread () const override
 
voidoffset_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)
 
void init_subrange (IndexBuf *elem_src, uint start, uint length)
 
void init_build_on_device (uint index_len)
 
uint32_t index_len_get () const
 
size_t size_get () const
 
bool is_init () const
 
uint32_tunmap (const uint32_t *mapped_memory) 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_
 
}; 
 

Detailed Description

Definition at line 18 of file gl_index_buffer.hh.

Constructor & Destructor Documentation

◆ ~GLIndexBuf()

blender::gpu::GLIndexBuf::~GLIndexBuf ( )

Definition at line 14 of file gl_index_buffer.cc.

References blender::gpu::GLContext::buf_free().

Member Function Documentation

◆ bind()

void blender::gpu::GLIndexBuf::bind ( )

◆ bind_as_ssbo()

void blender::gpu::GLIndexBuf::bind_as_ssbo ( uint  binding)
overridevirtual

Implements blender::gpu::IndexBuf.

Definition at line 42 of file gl_index_buffer.cc.

References bind(), BLI_assert, and blender::gpu::IndexBuf::data_.

◆ offset_ptr()

void* blender::gpu::GLIndexBuf::offset_ptr ( uint  additional_vertex_offset) const
inline

◆ read()

const uint32_t * blender::gpu::GLIndexBuf::read ( ) const
overridevirtual

Implements blender::gpu::IndexBuf.

Definition at line 60 of file gl_index_buffer.cc.

References BLI_assert, data, and result.

◆ restart_index()

GLuint blender::gpu::GLIndexBuf::restart_index ( ) const
inline

◆ update_sub()

void blender::gpu::GLIndexBuf::update_sub ( uint  start,
uint  len,
const void data 
)
overridevirtual

Implements blender::gpu::IndexBuf.

Definition at line 83 of file gl_index_buffer.cc.

References data, and len.

◆ upload_data()

void blender::gpu::GLIndexBuf::upload_data ( )
overridevirtual

Implements blender::gpu::IndexBuf.

Definition at line 78 of file gl_index_buffer.cc.

References bind().

Friends And Related Function Documentation

◆ GLBatch

friend class GLBatch
friend

Definition at line 19 of file gl_index_buffer.hh.

◆ GLDrawList

friend class GLDrawList
friend

Definition at line 20 of file gl_index_buffer.hh.

◆ GLShader

friend class GLShader
friend

Definition at line 21 of file gl_index_buffer.hh.


The documentation for this class was generated from the following files: