Blender  V3.3
gpu_py_framebuffer.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 BPyGPUFrameBuffer_Type;
12 
13 #define BPyGPUFrameBuffer_Check(v) (Py_TYPE(v) == &BPyGPUFrameBuffer_Type)
14 
15 typedef struct BPyGPUFrameBuffer {
16  PyObject_HEAD
17  struct GPUFrameBuffer *fb;
18 
19 #ifndef GPU_NO_USE_PY_REFERENCES
21 #endif
23 
24 PyObject *BPyGPUFrameBuffer_CreatePyObject(struct GPUFrameBuffer *fb, bool shared_reference)
25  ATTR_NONNULL(1);
#define ATTR_NONNULL(...)
struct GPUFrameBuffer GPUFrameBuffer
PyObject * BPyGPUFrameBuffer_CreatePyObject(struct GPUFrameBuffer *fb, bool shared_reference) ATTR_NONNULL(1)
struct BPyGPUFrameBuffer BPyGPUFrameBuffer
PyTypeObject BPyGPUFrameBuffer_Type
BLI_INLINE float fb(float length, float L)
PyObject_HEAD struct GPUFrameBuffer * fb