2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2018-09-27 00:53:45 -03:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup bpygpu
|
2018-09-27 00:53:45 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2023-07-21 19:41:03 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2018-09-27 00:53:45 -03:00
|
|
|
extern PyTypeObject BPyGPUIndexBuf_Type;
|
|
|
|
|
|
|
|
|
|
#define BPyGPUIndexBuf_Check(v) (Py_TYPE(v) == &BPyGPUIndexBuf_Type)
|
|
|
|
|
|
|
|
|
|
typedef struct BPyGPUIndexBuf {
|
2021-04-01 11:15:47 +11:00
|
|
|
PyObject_VAR_HEAD
|
|
|
|
|
struct GPUIndexBuf *elem;
|
2018-09-27 00:53:45 -03:00
|
|
|
} BPyGPUIndexBuf;
|
|
|
|
|
|
|
|
|
|
PyObject *BPyGPUIndexBuf_CreatePyObject(struct GPUIndexBuf *elem);
|
2023-07-21 19:41:03 +02:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|