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

#include <mtl_batch.hh>

Inherits Batch.

Public Member Functions

 MTLBatch ()=default
 ~MTLBatch () override=default
void multi_draw_indirect (StorageBuf *, int, intptr_t, intptr_t) override
MTLIndexBufelem_ () const
MTLVertBufverts_ (const int index) const
MTLShaderactive_shader_get () const

Creation & Deletion

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
id< MTLRenderCommandEncoder > bind ()
void unbind (id< MTLRenderCommandEncoder > rec)

Detailed Description

Definition at line 33 of file mtl_batch.hh.

Constructor & Destructor Documentation

◆ MTLBatch()

blender::gpu::MTLBatch::MTLBatch ( )
default

◆ ~MTLBatch()

blender::gpu::MTLBatch::~MTLBatch ( )
overridedefault

References draw().

Member Function Documentation

◆ active_shader_get()

MTLShader * blender::gpu::MTLBatch::active_shader_get ( ) const
inline

Definition at line 106 of file mtl_batch.hh.

◆ bind()

◆ draw()

void blender::gpu::MTLBatch::draw ( int v_first,
int v_count,
int i_first,
int i_count )
override

Definition at line 35 of file mtl_batch.mm.

Referenced by ~MTLBatch().

◆ draw_indirect()

void blender::gpu::MTLBatch::draw_indirect ( StorageBuf * indirect_buf,
intptr_t offset )
override

Definition at line 40 of file mtl_batch.mm.

◆ elem_()

MTLIndexBuf * blender::gpu::MTLBatch::elem_ ( ) const
inline

Definition at line 98 of file mtl_batch.hh.

◆ multi_draw_indirect()

void blender::gpu::MTLBatch::multi_draw_indirect ( StorageBuf * ,
int ,
intptr_t ,
intptr_t  )
inlineoverride

Definition at line 84 of file mtl_batch.hh.

◆ unbind()

void blender::gpu::MTLBatch::unbind ( id< MTLRenderCommandEncoder > rec)

Definition at line 389 of file mtl_batch.mm.

References G, and G_DEBUG_GPU.

◆ verts_()

MTLVertBuf * blender::gpu::MTLBatch::verts_ ( const int index) const
inline

Definition at line 102 of file mtl_batch.hh.

References verts.


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