|
Blender V5.0
|
#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 |
| 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 |
| id< MTLRenderCommandEncoder > | bind () |
| void | unbind (id< MTLRenderCommandEncoder > rec) |
Definition at line 33 of file mtl_batch.hh.
|
default |
|
overridedefault |
References draw().
|
inline |
Definition at line 106 of file mtl_batch.hh.
| id< MTLRenderCommandEncoder > blender::gpu::MTLBatch::bind | ( | ) |
Definition at line 277 of file mtl_batch.mm.
References blender::gpu::MTLVertBuf::bind(), blender::gpu::MTLRenderPassState::bind_vertex_buffer(), BLI_assert, BLI_assert_msg, buffers, blender::gpu::MTLContext::ensure_begin_render_pass(), blender::gpu::MTLContext::ensure_render_pipeline_state(), blender::gpu::MTLVertBuf::flag_used(), G, 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(), GPU_BATCH_VBO_MAX_LEN, blender::gpu::gpu_prim_type_to_metal(), i, blender::gpu::MTLContext::main_command_buffer, MTL_LOG_ERROR, blender::gpu::Context::shader, and blender::gpu::MTLIndexBuf::upload_data().
|
override |
Definition at line 35 of file mtl_batch.mm.
Referenced by ~MTLBatch().
|
override |
Definition at line 40 of file mtl_batch.mm.
|
inline |
Definition at line 98 of file mtl_batch.hh.
|
inlineoverride |
Definition at line 84 of file mtl_batch.hh.
| void blender::gpu::MTLBatch::unbind | ( | id< MTLRenderCommandEncoder > | rec | ) |
Definition at line 389 of file mtl_batch.mm.
References G, and G_DEBUG_GPU.
|
inline |
Definition at line 102 of file mtl_batch.hh.
References verts.