Also see #103343. Pull Request: https://projects.blender.org/blender/blender/pulls/110352
36 lines
656 B
C
36 lines
656 B
C
/* SPDX-FileCopyrightText: 2023 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup bpygpu
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "BLI_compiler_attrs.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern PyTypeObject BPyGPUFrameBuffer_Type;
|
|
|
|
#define BPyGPUFrameBuffer_Check(v) (Py_TYPE(v) == &BPyGPUFrameBuffer_Type)
|
|
|
|
typedef struct BPyGPUFrameBuffer {
|
|
PyObject_HEAD
|
|
struct GPUFrameBuffer *fb;
|
|
|
|
#ifndef GPU_NO_USE_PY_REFERENCES
|
|
bool shared_reference;
|
|
#endif
|
|
} BPyGPUFrameBuffer;
|
|
|
|
PyObject *BPyGPUFrameBuffer_CreatePyObject(struct GPUFrameBuffer *fb, bool shared_reference)
|
|
ATTR_NONNULL(1);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|