Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
28 lines
629 B
C++
28 lines
629 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup bpygpu
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "BLI_compiler_attrs.h"
|
|
|
|
#define USE_GPU_PY_REFERENCES
|
|
|
|
extern PyTypeObject BPyGPUBatch_Type;
|
|
|
|
#define BPyGPUBatch_Check(v) (Py_TYPE(v) == &BPyGPUBatch_Type)
|
|
|
|
typedef struct BPyGPUBatch {
|
|
PyObject_VAR_HEAD
|
|
/* The batch is owned, we may support thin wrapped batches later. */
|
|
struct GPUBatch *batch;
|
|
#ifdef USE_GPU_PY_REFERENCES
|
|
/* Just to keep a user to prevent freeing buf's we're using */
|
|
PyObject *references;
|
|
#endif
|
|
} BPyGPUBatch;
|
|
|
|
PyObject *BPyGPUBatch_CreatePyObject(struct GPUBatch *batch) ATTR_NONNULL(1);
|