42 ".. function:: init()\n"
44 " Initializes the GPU module for background use.\n"
45 " If the initialization fails, a SystemError will be raised.\n");
57 PyErr_SetString(PyExc_SystemError,
"Failed to initialize GPU. GPU backend not supported");
66 PyErr_SetString(PyExc_SystemError,
"Failed to initialize GPU. Unexpected Error");
75# pragma clang diagnostic push
76# pragma clang diagnostic ignored "-Wcast-function-type"
78# pragma GCC diagnostic push
79# pragma GCC diagnostic ignored "-Wcast-function-type"
84 {
"init",
reinterpret_cast<PyCFunction
>(
pygpu_init), METH_NOARGS, pygpu_init_doc},
85 {
nullptr,
nullptr, 0,
nullptr},
90# pragma clang diagnostic pop
92# pragma GCC diagnostic pop
99 "This module provides Python wrappers for the GPU implementation in Blender.\n"
100 "Some higher level functions can be found in the :mod:`gpu_extras` module.\n");
115 PyObject *sys_modules = PyImport_GetModuleDict();
VecBase< float, D > constexpr mod(VecOp< float, D >, VecOp< float, D >) RET
PyObject * bpygpu_capabilities_init()
PyObject * bpygpu_state_init()
PyDoc_STRVAR(bpy_bm_new_doc, ".. function:: new(*, use_operators=True)\n" "\n" " :param use_operators: Support calling operators in :mod:`bmesh.ops` (uses some " "extra memory per vert/edge/face).\n" " :type use_operators: bool\n" " :return: Return a new, empty BMesh.\n" " :rtype: :class:`bmesh.types.BMesh`\n")
bool GPU_backend_supported()
PyObject * bpygpu_matrix_init()
void WM_init_gpu_offscreen()
static PyMethodDef pygpu_tp_methods[]
PyObject * bpygpu_texture_init()
PyObject * bpygpu_shader_init()
PyObject * bpygpu_select_init()
PyObject * bpygpu_compute_init()
int PyC_Module_AddToSysModules(PyObject *sys_modules, PyObject *module)
PyObject * bpygpu_platform_init()
static PyModuleDef pygpu_module_def
static PyObject * pygpu_init(PyObject *)
PyObject * bpygpu_types_init()
void WM_init_gpu_backend()