Blender V5.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
8
9#pragma once
10
11#include <Python.h>
12
13#include "BLI_compiler_attrs.hh"
14
15namespace blender {
16
17namespace gpu {
18class Texture;
19}
20
21extern PyTypeObject BPyGPUTexture_Type;
22
30
31#define BPyGPUTexture_Check(v) (Py_TYPE(v) == &BPyGPUTexture_Type)
32
34 PyObject_HEAD
36};
37
38[[nodiscard]] int bpygpu_ParseTexture(PyObject *o, void *p);
39[[nodiscard]] PyObject *bpygpu_texture_init();
40
41[[nodiscard]] PyObject *BPyGPUTexture_CreatePyObject(gpu::Texture *tex, bool shared_reference)
42 ATTR_NONNULL(1);
43
44} // namespace blender
BMesh Iterators.
int bpygpu_ParseTexture(PyObject *o, void *p)
constexpr int GPU_DEPTH24_STENCIL8_DEPRECATED
PyObject * bpygpu_texture_init()
const PyC_StringEnumItems pygpu_textureformat_items[]
PyTypeObject BPyGPUTexture_Type
constexpr int GPU_DEPTH_COMPONENT24_DEPRECATED
void ATTR_NONNULL(1, 2)
PyObject * BPyGPUTexture_CreatePyObject(gpu::Texture *tex, bool shared_reference)
PyObject_HEAD gpu::Texture * tex