Blender
V4.3
source
blender
gpu
metal
mtl_drawlist.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
11
12
#pragma once
13
14
#include "
BLI_sys_types.h
"
15
#include "
GPU_batch.hh
"
16
#include "
MEM_guardedalloc.h
"
17
#include "
gpu_drawlist_private.hh
"
18
19
#include "
mtl_batch.hh
"
20
#include "
mtl_context.hh
"
21
22
namespace
blender::gpu
{
23
27
class
MTLDrawList
:
public
DrawList
{
28
29
private
:
31
MTLBatch
*batch_;
33
void
*data_;
35
size_t
data_size_;
37
size_t
command_offset_;
39
uint32_t
command_len_;
41
uint32_t
base_index_;
43
uint32_t
v_first_, v_count_;
45
uint32_t
buffer_size_;
46
47
public
:
48
MTLDrawList
(
int
length
);
49
~MTLDrawList
();
50
51
void
append
(Batch *
batch
,
int
i_first,
int
i_count)
override
;
52
void
submit
()
override
;
53
54
private
:
55
void
init
();
56
57
MEM_CXX_CLASS_ALLOC_FUNCS(
"MTLDrawList"
);
58
};
59
60
}
// namespace blender::gpu
BLI_sys_types.h
GPU_batch.hh
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
init
void init()
length
SIMD_FORCE_INLINE btScalar length(const btQuaternion &q)
Return the length of a quaternion.
Definition
btQuaternion.h:895
blender::gpu::DrawList
Definition
gpu_drawlist_private.hh:22
blender::gpu::MTLBatch
Definition
mtl_batch.hh:34
blender::gpu::MTLDrawList::MTLDrawList
MTLDrawList(int length)
Definition
mtl_drawlist.mm:49
blender::gpu::MTLDrawList::~MTLDrawList
~MTLDrawList()
Definition
mtl_drawlist.mm:61
blender::gpu::MTLDrawList::append
void append(Batch *batch, int i_first, int i_count) override
Definition
mtl_drawlist.mm:84
blender::gpu::MTLDrawList::submit
void submit() override
Definition
mtl_drawlist.mm:154
batch
struct @157336070235062372277311340362362342103123126032::@262166344314164341202215145112231240022370055142 batch
gpu_drawlist_private.hh
mtl_batch.hh
mtl_context.hh
blender::gpu
Definition
blf_internal_types.hh:23
uint32_t
unsigned int uint32_t
Definition
stdint.h:80
Generated on Sat Oct 4 2025 05:32:23 for Blender by
doxygen
1.14.0