Blender V5.0
gpu_py_api.cc File Reference
#include <Python.h>
#include "gpu_py_capabilities.hh"
#include "gpu_py_compute.hh"
#include "gpu_py_matrix.hh"
#include "gpu_py_platform.hh"
#include "gpu_py_select.hh"
#include "gpu_py_state.hh"
#include "gpu_py_types.hh"
#include "gpu_py_api.hh"

Go to the source code of this file.

GPU Module

static PyModuleDef pygpu_module_def
 PyDoc_STRVAR (pygpu_doc, "This module provides Python wrappers for the GPU implementation in Blender.\n" "Some higher level functions can be found in the :mod:`gpu_extras` module.\n")
PyObject * BPyInit_gpu ()

Detailed Description

Experimental Python API, not considered public yet (called '_gpu'), we may re-expose as public later.

  • Use bpygpu_ for local API.
  • Use BPyGPU for public API.

Definition in file gpu_py_api.cc.

Function Documentation

◆ BPyInit_gpu()

◆ PyDoc_STRVAR()

PyDoc_STRVAR ( pygpu_doc ,
"This module provides Python wrappers for the GPU implementation in Blender.\n" "Some higher level functions can be found in the :mod:`gpu_extras` module.\n"  )

Variable Documentation

◆ pygpu_module_def

PyModuleDef pygpu_module_def
static
Initial value:
= {
"gpu",
pygpu_doc,
0,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
}

Definition at line 36 of file gpu_py_api.cc.

Referenced by BPyInit_gpu().