Blender V5.0
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.h"
14
15namespace blender::gpu {
16class VertBuf;
17}
18
19extern PyTypeObject BPyGPUVertBuf_Type;
20
21#define BPyGPUVertBuf_Check(v) (Py_TYPE(v) == &BPyGPUVertBuf_Type)
22
24 PyObject_VAR_HEAD
25 /* The buf is owned, we may support thin wrapped batches later. */
27};
28
#define ATTR_NONNULL(...)
PyTypeObject BPyGPUVertBuf_Type
PyObject * BPyGPUVertBuf_CreatePyObject(blender::gpu::VertBuf *buf) ATTR_NONNULL(1)
PyObject_VAR_HEAD blender::gpu::VertBuf * buf