Blender
V5.3
source
blender
python
gpu
gpu_py_vertex_buffer.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 <Python.h>
12
13
#include "
BLI_compiler_attrs.hh
"
14
15
namespace
blender
{
16
17
namespace
gpu
{
18
class
VertBuf
;
19
}
20
21
extern
PyTypeObject
BPyGPUVertBuf_Type
;
22
23
#define BPyGPUVertBuf_Check(v) (Py_TYPE(v) == &BPyGPUVertBuf_Type)
24
25
struct
BPyGPUVertBuf
{
26
PyObject_HEAD
27
/* The buf is owned, we may support thin wrapped batches later. */
28
gpu::VertBuf
*
buf
;
29
};
30
31
[[nodiscard]] PyObject *
BPyGPUVertBuf_CreatePyObject
(
gpu::VertBuf
*buf)
ATTR_NONNULL
(1);
32
33
}
// namespace blender
BLI_compiler_attrs.hh
blender::gpu::VertBuf
Definition
GPU_vertex_buffer.hh:92
blender::gpu
Definition
blf_internal_types.hh:35
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::BPyGPUVertBuf_Type
PyTypeObject BPyGPUVertBuf_Type
Definition
gpu_py_vertex_buffer.cc:364
blender::BPyGPUVertBuf_CreatePyObject
PyObject * BPyGPUVertBuf_CreatePyObject(gpu::VertBuf *buf)
Definition
gpu_py_vertex_buffer.cc:422
blender::ATTR_NONNULL
void ATTR_NONNULL(1, 2)
blender::BPyGPUVertBuf
Definition
gpu_py_vertex_buffer.hh:25
blender::BPyGPUVertBuf::buf
PyObject_HEAD gpu::VertBuf * buf
Definition
gpu_py_vertex_buffer.hh:28
Generated on
for Blender by
doxygen
1.18.0