Blender
V5.3
source
blender
python
gpu
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
15
namespace
blender
{
16
17
namespace
gpu
{
18
class
Texture
;
19
}
20
21
extern
PyTypeObject
BPyGPUTexture_Type
;
22
27
constexpr
int
GPU_DEPTH24_STENCIL8_DEPRECATED
= -1;
28
constexpr
int
GPU_DEPTH_COMPONENT24_DEPRECATED
= -2;
29
extern
const
struct
PyC_StringEnumItems
pygpu_textureformat_items
[];
30
31
#define BPyGPUTexture_Check(v) (Py_TYPE(v) == &BPyGPUTexture_Type)
32
33
struct
BPyGPUTexture
{
34
PyObject_HEAD
35
gpu::Texture
*
tex
;
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
BLI_compiler_attrs.hh
blender::gpu::Texture
Definition
gpu_texture_private.hh:105
blender::gpu
Definition
blf_internal_types.hh:35
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::bpygpu_ParseTexture
int bpygpu_ParseTexture(PyObject *o, void *p)
Definition
gpu_py_texture.cc:1026
blender::GPU_DEPTH24_STENCIL8_DEPRECATED
constexpr int GPU_DEPTH24_STENCIL8_DEPRECATED
Definition
gpu_py_texture.hh:27
blender::bpygpu_texture_init
PyObject * bpygpu_texture_init()
Definition
gpu_py_texture.cc:1047
blender::pygpu_textureformat_items
const PyC_StringEnumItems pygpu_textureformat_items[]
Definition
gpu_py_texture.cc:92
blender::BPyGPUTexture_Type
PyTypeObject BPyGPUTexture_Type
Definition
gpu_py_texture.cc:905
blender::GPU_DEPTH_COMPONENT24_DEPRECATED
constexpr int GPU_DEPTH_COMPONENT24_DEPRECATED
Definition
gpu_py_texture.hh:28
blender::ATTR_NONNULL
void ATTR_NONNULL(1, 2)
blender::BPyGPUTexture_CreatePyObject
PyObject * BPyGPUTexture_CreatePyObject(gpu::Texture *tex, bool shared_reference)
Definition
gpu_py_texture.cc:1061
blender::BPyGPUTexture
Definition
gpu_py_texture.hh:33
blender::BPyGPUTexture::tex
PyObject_HEAD gpu::Texture * tex
Definition
gpu_py_texture.hh:35
blender::PyC_StringEnumItems
Definition
py_capi_utils.hh:405
Generated on
for Blender by
doxygen
1.18.0