|
Blender V5.3
|
#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) |
Definition at line 43 of file mtl_batch.hh.
|
default |
Referenced by blender::gpu::MTLBackend::batch_alloc().
|
overridedefault |
References bind(), draw_indirect(), multi_draw_indirect(), and unbind().
|
inline |
Definition at line 113 of file mtl_batch.hh.
| id< MTLRenderCommandEncoder > blender::gpu::MTLBatch::bind | ( | ) |
Definition at line 223 of file mtl_batch.mm.
References blender::gpu::MTLVertBuf::bind(), blender::gpu::MTLRenderPassState::bind_vertex_buffer(), blender::BLI_assert(), BLI_assert_msg, blender::gpu::MTLContext::ensure_begin_render_pass(), blender::gpu::MTLContext::ensure_render_pipeline_state(), blender::gpu::MTLVertBuf::flag_used(), blender::G, blender::G_DEBUG_GPU, blender::gpu::MTLContext::get(), blender::gpu::MTLCommandBufferManager::get_active_framebuffer(), blender::gpu::MTLFrameBuffer::get_dirty(), blender::gpu::MTLCommandBufferManager::get_render_pass_state(), blender::gpu::MTLContext::main_command_buffer, MTL_LOG_ERROR, blender::gpu::Context::shader, blender::gpu::MTLCommandBufferManager::unfold_pending_debug_groups(), and blender::gpu::MTLIndexBuf::upload_data().
Referenced by ~MTLBatch().
|
override |
Definition at line 38 of file mtl_batch.mm.
|
override |
Definition at line 43 of file mtl_batch.mm.
Referenced by ~MTLBatch().
|
inline |
Definition at line 105 of file mtl_batch.hh.
|
override |
Definition at line 559 of file mtl_batch.mm.
Referenced by ~MTLBatch().
| 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().
|
inline |
Definition at line 109 of file mtl_batch.hh.