Blender V5.0
gpu_py_texture.hh File Reference
#include <Python.h>
#include "BLI_compiler_attrs.h"

Go to the source code of this file.

Classes

struct  BPyGPUTexture

Namespaces

namespace  blender
namespace  blender::gpu

Macros

#define BPyGPUTexture_Check(v)

Functions

int bpygpu_ParseTexture (PyObject *o, void *p)
PyObject * bpygpu_texture_init ()
PyObject * BPyGPUTexture_CreatePyObject (blender::gpu::Texture *tex, bool shared_reference) ATTR_NONNULL(1)

Variables

PyTypeObject BPyGPUTexture_Type
constexpr int GPU_DEPTH24_STENCIL8_DEPRECATED = -1
constexpr int GPU_DEPTH_COMPONENT24_DEPRECATED = -2
const struct PyC_StringEnumItems pygpu_textureformat_items []

Macro Definition Documentation

◆ BPyGPUTexture_Check

#define BPyGPUTexture_Check ( v)
Value:
(Py_TYPE(v) == &BPyGPUTexture_Type)
ATTR_WARN_UNUSED_RESULT const BMVert * v
PyTypeObject BPyGPUTexture_Type

Definition at line 29 of file gpu_py_texture.hh.

Referenced by bpygpu_ParseTexture(), and pygpu_framebuffer_new_parse_arg().

Function Documentation

◆ bpygpu_ParseTexture()

int bpygpu_ParseTexture ( PyObject * o,
void * p )
nodiscard

◆ bpygpu_texture_init()

PyObject * bpygpu_texture_init ( )
nodiscard

Definition at line 762 of file gpu_py_texture.cc.

References pygpu_texture_module_def.

Referenced by BPyInit_gpu().

◆ BPyGPUTexture_CreatePyObject()

PyObject * BPyGPUTexture_CreatePyObject ( blender::gpu::Texture * tex,
bool shared_reference )
nodiscard

Variable Documentation

◆ BPyGPUTexture_Type

PyTypeObject BPyGPUTexture_Type
extern

◆ GPU_DEPTH24_STENCIL8_DEPRECATED

int GPU_DEPTH24_STENCIL8_DEPRECATED = -1
constexpr

GPU_DEPTH24_STENCIL8 and GPU_DEPTH_COMPONENT24 are deprecated in Blender 5.0. These formats are automatically converted to their 32F variant.

Definition at line 25 of file gpu_py_texture.hh.

Referenced by pygpu_shader_info_image(), and pygpu_texture__tp_new().

◆ GPU_DEPTH_COMPONENT24_DEPRECATED

int GPU_DEPTH_COMPONENT24_DEPRECATED = -2
constexpr

Definition at line 26 of file gpu_py_texture.hh.

Referenced by pygpu_shader_info_image(), and pygpu_texture__tp_new().

◆ pygpu_textureformat_items

const struct PyC_StringEnumItems pygpu_textureformat_items[]
extern