Blender  V3.3
Public Member Functions | List of all members
blender::gpu::Batch Class Referenceabstract

#include <gpu_batch_private.hh>

Inheritance diagram for blender::gpu::Batch:
blender::gpu::GLBatch

Public Member Functions

virtual ~Batch ()=default
 
virtual void draw (int v_first, int v_count, int i_first, int i_count)=0
 
IndexBufelem_ () const
 
VertBufverts_ (const int index) const
 
VertBufinst_ (const int index) const
 

Detailed Description

Base class which is then specialized for each implementation (GL, VK, ...).

Note
Extends GPUBatch as we still needs to expose some of the internals to the outside C code.

Definition at line 27 of file gpu_batch_private.hh.

Constructor & Destructor Documentation

◆ ~Batch()

virtual blender::gpu::Batch::~Batch ( )
virtualdefault

Member Function Documentation

◆ draw()

virtual void blender::gpu::Batch::draw ( int  v_first,
int  v_count,
int  i_first,
int  i_count 
)
pure virtual

Implemented in blender::gpu::GLBatch.

◆ elem_()

IndexBuf* blender::gpu::Batch::elem_ ( ) const
inline

Definition at line 34 of file gpu_batch_private.hh.

References blender::gpu::unwrap().

◆ inst_()

VertBuf* blender::gpu::Batch::inst_ ( const int  index) const
inline

Definition at line 42 of file gpu_batch_private.hh.

References blender::gpu::unwrap().

◆ verts_()

VertBuf* blender::gpu::Batch::verts_ ( const int  index) const
inline

Definition at line 38 of file gpu_batch_private.hh.

References blender::gpu::unwrap(), and verts.


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