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

#include <mtl_batch.hh>

Inherits Batch.

Public Member Functions

 MTLBatch ()=default
 ~MTLBatch () override=default
MTLIndexBuf * elem_ () const
MTLVertBuf * verts_ (const int index) const
MTLShader * active_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
void multi_draw_indirect (StorageBuf *indirect_buf, int count, intptr_t offset, intptr_t stride) override
id< MTLRenderCommandEncoder > bind ()
void unbind (id< MTLRenderCommandEncoder > rec)

Detailed Description

Definition at line 43 of file mtl_batch.hh.

Constructor & Destructor Documentation

◆ MTLBatch()

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

◆ ~MTLBatch()

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

Member Function Documentation

◆ active_shader_get()

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

Definition at line 113 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 38 of file mtl_batch.mm.

◆ draw_indirect()

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

Definition at line 43 of file mtl_batch.mm.

Referenced by ~MTLBatch().

◆ elem_()

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

Definition at line 105 of file mtl_batch.hh.

◆ multi_draw_indirect()

void blender::gpu::MTLBatch::multi_draw_indirect ( StorageBuf * indirect_buf,
int count,
intptr_t offset,
intptr_t stride )
override

Definition at line 559 of file mtl_batch.mm.

Referenced by ~MTLBatch().

◆ unbind()

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

Definition at line 318 of file mtl_batch.mm.

References blender::G, and blender::G_DEBUG_GPU.

Referenced by ~MTLBatch().

◆ verts_()

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

Definition at line 109 of file mtl_batch.hh.


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