Blender V4.5
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)   (Py_TYPE(v) == &BPyGPUBatch_Type)
 

Functions

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

Variables

PyTypeObject BPyGPUBatch_Type
 

Macro Definition Documentation

◆ BPyGPUBatch_Check

#define BPyGPUBatch_Check ( v)    (Py_TYPE(v) == &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)

Definition at line 659 of file gpu_py_batch.cc.

References batch, BPyGPUBatch_Type, BPyGPUBatch::references, 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().