Blender V5.0
blender::gpu::GLBatch Class Reference

#include <gl_batch.hh>

Inherits Batch.

Public Member Functions

GLIndexBufelem_ () const
GLVertBufverts_ (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 (StorageBuf *indirect_buf, intptr_t offset) override
void multi_draw_indirect (StorageBuf *indirect_buf, int count, intptr_t offset, intptr_t stride) override
void bind ()

Public Attributes

GLVaoCache vao_cache_

Detailed Description

Definition at line 87 of file gl_batch.hh.

Member Function Documentation

◆ bind()

◆ draw()

void GLBatch::draw ( int v_first,
int v_count,
int i_first,
int i_count )
override

◆ draw_indirect()

void GLBatch::draw_indirect ( StorageBuf * indirect_buf,
intptr_t offset )
override

◆ elem_()

GLIndexBuf * blender::gpu::GLBatch::elem_ ( ) const
inline

Definition at line 103 of file gl_batch.hh.

Referenced by draw(), draw_indirect(), and multi_draw_indirect().

◆ MEM_CXX_CLASS_ALLOC_FUNCS()

blender::gpu::GLBatch::MEM_CXX_CLASS_ALLOC_FUNCS ( "GLBatch" )

◆ multi_draw_indirect()

void GLBatch::multi_draw_indirect ( StorageBuf * indirect_buf,
int count,
intptr_t offset,
intptr_t stride )
override

◆ verts_()

GLVertBuf * blender::gpu::GLBatch::verts_ ( const int index) const
inline

Definition at line 107 of file gl_batch.hh.

References verts.

Member Data Documentation

◆ vao_cache_

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().


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