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

#include <gpu_batch_private.hh>

Inherits GPUBatch.

Inherited by 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_ (void) 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 43 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_ ( void  ) const
inline

Definition at line 50 of file gpu_batch_private.hh.

References blender::gpu::unwrap().

◆ inst_()

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

Definition at line 58 of file gpu_batch_private.hh.

References blender::gpu::unwrap().

◆ verts_()

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

Definition at line 54 of file gpu_batch_private.hh.

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


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