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

Go to the source code of this file.

Classes

struct  BPyGPUBatch

Namespaces

namespace  blender
namespace  blender::gpu

Macros

#define USE_GPU_PY_REFERENCES
#define BPyGPUBatch_Check(v)

Functions

PyObject * BPyGPUBatch_CreatePyObject (blender::gpu::Batch *batch) ATTR_NONNULL(1)

Variables

PyTypeObject BPyGPUBatch_Type

Macro Definition Documentation

◆ BPyGPUBatch_Check

#define BPyGPUBatch_Check ( v)
Value:
(Py_TYPE(v) == &BPyGPUBatch_Type)
ATTR_WARN_UNUSED_RESULT const BMVert * v
PyTypeObject BPyGPUBatch_Type

Definition at line 23 of file gpu_py_batch.hh.

◆ USE_GPU_PY_REFERENCES

#define USE_GPU_PY_REFERENCES

Definition at line 19 of file gpu_py_batch.hh.

Function Documentation

◆ BPyGPUBatch_CreatePyObject()

PyObject * BPyGPUBatch_CreatePyObject ( blender::gpu::Batch * batch)
nodiscard

Definition at line 659 of file gpu_py_batch.cc.

References batch, BPyGPUBatch_Type, and self.

Referenced by pygpu_batch__tp_new().

Variable Documentation

◆ BPyGPUBatch_Type

PyTypeObject BPyGPUBatch_Type
extern

Definition at line 585 of file gpu_py_batch.cc.

Referenced by bpygpu_types_init(), and BPyGPUBatch_CreatePyObject().