Blender V4.3
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
9#pragma once
10
11#include "BLI_compiler_attrs.h"
12
13struct GPUTexture;
14
15extern PyTypeObject BPyGPUTexture_Type;
17
18#define BPyGPUTexture_Check(v) (Py_TYPE(v) == &BPyGPUTexture_Type)
19
21 PyObject_HEAD
22 GPUTexture *tex;
23};
24
25int bpygpu_ParseTexture(PyObject *o, void *p);
26PyObject *bpygpu_texture_init();
27
28PyObject *BPyGPUTexture_CreatePyObject(GPUTexture *tex, bool shared_reference) ATTR_NONNULL(1);
#define ATTR_NONNULL(...)
PyTypeObject BPyGPUTexture_Type
PyObject * bpygpu_texture_init()
const struct PyC_StringEnumItems pygpu_textureformat_items[]
int bpygpu_ParseTexture(PyObject *o, void *p)
PyObject * BPyGPUTexture_CreatePyObject(GPUTexture *tex, bool shared_reference) ATTR_NONNULL(1)
PyObject_HEAD GPUTexture * tex