Blender V5.3
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
15namespace blender {
16
17namespace gpu {
18class VertBuf;
19}
20
21extern PyTypeObject BPyGPUVertBuf_Type;
22
23#define BPyGPUVertBuf_Check(v) (Py_TYPE(v) == &BPyGPUVertBuf_Type)
24
26 PyObject_HEAD
27 /* The buf is owned, we may support thin wrapped batches later. */
29};
30
31[[nodiscard]] PyObject *BPyGPUVertBuf_CreatePyObject(gpu::VertBuf *buf) ATTR_NONNULL(1);
32
33} // namespace blender
BMesh Iterators.
PyTypeObject BPyGPUVertBuf_Type
PyObject * BPyGPUVertBuf_CreatePyObject(gpu::VertBuf *buf)
void ATTR_NONNULL(1, 2)
PyObject_HEAD gpu::VertBuf * buf