Blender
V4.3
source
blender
python
gpu
gpu_py_batch.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
8
9
#pragma once
10
11
#include "
BLI_compiler_attrs.h
"
12
13
namespace
blender::gpu
{
14
class
Batch;
15
}
16
17
#define USE_GPU_PY_REFERENCES
18
19
extern
PyTypeObject
BPyGPUBatch_Type
;
20
21
#define BPyGPUBatch_Check(v) (Py_TYPE(v) == &BPyGPUBatch_Type)
22
23
struct
BPyGPUBatch
{
24
PyObject_VAR_HEAD
25
/* The batch is owned, we may support thin wrapped batches later. */
26
blender::gpu::Batch *
batch
;
27
#ifdef USE_GPU_PY_REFERENCES
28
/* Just to keep a user to prevent freeing buffers we're using. */
29
PyObject *
references
;
30
#endif
31
};
32
33
PyObject *
BPyGPUBatch_CreatePyObject
(blender::gpu::Batch *
batch
)
ATTR_NONNULL
(1);
BLI_compiler_attrs.h
ATTR_NONNULL
#define ATTR_NONNULL(...)
Definition
BLI_compiler_attrs.h:25
batch
struct @157336070235062372277311340362362342103123126032::@262166344314164341202215145112231240022370055142 batch
BPyGPUBatch_Type
PyTypeObject BPyGPUBatch_Type
Definition
gpu_py_batch.cc:455
BPyGPUBatch_CreatePyObject
PyObject * BPyGPUBatch_CreatePyObject(blender::gpu::Batch *batch) ATTR_NONNULL(1)
Definition
gpu_py_batch.cc:529
blender::gpu
Definition
blf_internal_types.hh:23
BPyGPUBatch
Definition
gpu_py_batch.hh:23
BPyGPUBatch::references
PyObject * references
Definition
gpu_py_batch.hh:29
BPyGPUBatch::batch
PyObject_VAR_HEAD blender::gpu::Batch * batch
Definition
gpu_py_batch.hh:26
Generated on Sat Oct 4 2025 05:32:23 for Blender by
doxygen
1.14.0