Blender V4.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
9#pragma once
10
11#include "BLI_compiler_attrs.h"
12
13namespace blender::gpu {
14class VertBuf;
15}
16
17extern PyTypeObject BPyGPUVertBuf_Type;
18
19#define BPyGPUVertBuf_Check(v) (Py_TYPE(v) == &BPyGPUVertBuf_Type)
20
22 PyObject_VAR_HEAD
23 /* The buf is owned, we may support thin wrapped batches later. */
25};
26
#define ATTR_NONNULL(...)
PyTypeObject BPyGPUVertBuf_Type
PyObject * BPyGPUVertBuf_CreatePyObject(blender::gpu::VertBuf *buf) ATTR_NONNULL(1)
PyObject_VAR_HEAD blender::gpu::VertBuf * buf