Blender  V3.3
gpu_py_vertex_buffer.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 #include "BLI_compiler_attrs.h"
10 
11 extern PyTypeObject BPyGPUVertBuf_Type;
12 
13 #define BPyGPUVertBuf_Check(v) (Py_TYPE(v) == &BPyGPUVertBuf_Type)
14 
15 typedef struct BPyGPUVertBuf {
16  PyObject_VAR_HEAD
17  /* The buf is owned, we may support thin wrapped batches later. */
18  struct GPUVertBuf *buf;
20 
21 PyObject *BPyGPUVertBuf_CreatePyObject(struct GPUVertBuf *buf) ATTR_NONNULL(1);
#define ATTR_NONNULL(...)
struct GPUVertBuf GPUVertBuf
PyTypeObject BPyGPUVertBuf_Type
struct BPyGPUVertBuf BPyGPUVertBuf
PyObject * BPyGPUVertBuf_CreatePyObject(struct GPUVertBuf *buf) ATTR_NONNULL(1)
PyObject_VAR_HEAD struct GPUVertBuf * buf