Blender V4.5
gpu_py_texture.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <Python.h>
12
13#include "BLI_compiler_attrs.h"
14
15struct GPUTexture;
16
17extern PyTypeObject BPyGPUTexture_Type;
19
20#define BPyGPUTexture_Check(v) (Py_TYPE(v) == &BPyGPUTexture_Type)
21
23 PyObject_HEAD
24 GPUTexture *tex;
25};
26
27int bpygpu_ParseTexture(PyObject *o, void *p);
28PyObject *bpygpu_texture_init();
29
30PyObject *BPyGPUTexture_CreatePyObject(GPUTexture *tex, bool shared_reference) ATTR_NONNULL(1);
#define ATTR_NONNULL(...)
PyTypeObject BPyGPUTexture_Type
const PyC_StringEnumItems pygpu_textureformat_items[]
PyObject * bpygpu_texture_init()
int bpygpu_ParseTexture(PyObject *o, void *p)
PyObject * BPyGPUTexture_CreatePyObject(GPUTexture *tex, bool shared_reference) ATTR_NONNULL(1)
PyObject_HEAD GPUTexture * tex