Files
test2/source/blender/python/gpu/gpu_py_vertex_buffer.hh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
584 B
C++
Raw Normal View History

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup bpygpu
*/
#pragma once
#include <Python.h>
#include "BLI_compiler_attrs.h"
namespace blender::gpu {
class VertBuf;
}
extern PyTypeObject BPyGPUVertBuf_Type;
#define BPyGPUVertBuf_Check(v) (Py_TYPE(v) == &BPyGPUVertBuf_Type)
struct BPyGPUVertBuf {
PyObject_VAR_HEAD
2021-04-01 11:15:47 +11:00
/* The buf is owned, we may support thin wrapped batches later. */
blender::gpu::VertBuf *buf;
};
PyObject *BPyGPUVertBuf_CreatePyObject(blender::gpu::VertBuf *buf) ATTR_NONNULL(1);