Blender V5.0
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
15namespace blender::gpu {
16class Texture;
17}
18
19extern PyTypeObject BPyGPUTexture_Type;
20
28
29#define BPyGPUTexture_Check(v) (Py_TYPE(v) == &BPyGPUTexture_Type)
30
32 PyObject_HEAD
34};
35
36[[nodiscard]] int bpygpu_ParseTexture(PyObject *o, void *p);
37[[nodiscard]] PyObject *bpygpu_texture_init();
38
39[[nodiscard]] PyObject *BPyGPUTexture_CreatePyObject(blender::gpu::Texture *tex,
40 bool shared_reference) ATTR_NONNULL(1);
#define ATTR_NONNULL(...)
PyTypeObject BPyGPUTexture_Type
const PyC_StringEnumItems pygpu_textureformat_items[]
constexpr int GPU_DEPTH24_STENCIL8_DEPRECATED
PyObject * bpygpu_texture_init()
constexpr int GPU_DEPTH_COMPONENT24_DEPRECATED
int bpygpu_ParseTexture(PyObject *o, void *p)
PyObject * BPyGPUTexture_CreatePyObject(blender::gpu::Texture *tex, bool shared_reference) ATTR_NONNULL(1)
PyObject_HEAD blender::gpu::Texture * tex