Blender V4.3
gpu_py_compute.cc File Reference
#include <Python.h>
#include "BLI_utildefines.h"
#include "GPU_capabilities.hh"
#include "GPU_compute.hh"
#include "GPU_state.hh"
#include "../generic/python_compat.hh"
#include "gpu_py.hh"
#include "gpu_py_compute.hh"
#include "gpu_py_shader.hh"

Go to the source code of this file.

Functions

 PyDoc_STRVAR (pygpu_compute_dispatch_doc, ".. function:: dispatch(shader, groups_x_len, groups_y_len, groups_z_len)\n" "\n" " Dispatches GPU compute.\n" "\n" " :arg shader: The shader that you want to dispatch.\n" " :type shader: :class:`gpu.types.GPUShader`\n" " :arg groups_x_len: Int for group x length:\n" " :type groups_x_len: int\n" " :arg groups_y_len: Int for group y length:\n" " :type groups_y_len: int\n" " :arg groups_z_len: Int for group z length:\n" " :type groups_z_len: int\n" " :return: Shader object.\n" " :rtype: :class:`gpu.types.GPUShader`\n")
 
static PyObject * pygpu_compute_dispatch (PyObject *, PyObject *args, PyObject *kwds)
 

Module

static PyMethodDef pygpu_compute__tp_methods []
 
static PyModuleDef pygpu_compute_module_def
 
 PyDoc_STRVAR (pygpu_compute__tp_doc, "This module provides access to the global GPU compute functions")
 
PyObject * bpygpu_compute_init ()
 

Detailed Description

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

Definition in file gpu_py_compute.cc.

Function Documentation

◆ bpygpu_compute_init()

PyObject * bpygpu_compute_init ( )

Definition at line 139 of file gpu_py_compute.cc.

References pygpu_compute_module_def.

Referenced by BPyInit_gpu().

◆ PyDoc_STRVAR() [1/2]

PyDoc_STRVAR ( pygpu_compute__tp_doc ,
"This module provides access to the global GPU compute functions"  )

◆ PyDoc_STRVAR() [2/2]

PyDoc_STRVAR ( pygpu_compute_dispatch_doc ,
".. function:: dispatch(shader, groups_x_len, groups_y_len, groups_z_len)\n" "\n" " Dispatches GPU compute.\n" "\n" " :arg shader: The shader that you want to dispatch.\n" " :type shader: :class:`gpu.types.GPUShader`\n" " :arg groups_x_len: Int for group x length:\n" " :type groups_x_len: int\n" " :arg groups_y_len: Int for group y length:\n" " :type groups_y_len: int\n" " :arg groups_z_len: Int for group z length:\n" " :type groups_z_len: int\n" " :return: Shader object.\n" " :rtype: :class:`gpu.types.GPUShader`\n"  )

◆ pygpu_compute_dispatch()

static PyObject * pygpu_compute_dispatch ( PyObject * ,
PyObject * args,
PyObject * kwds )
static

Variable Documentation

◆ pygpu_compute__tp_methods

PyMethodDef pygpu_compute__tp_methods[]
static
Initial value:
= {
{"dispatch",
(PyCFunction)pygpu_compute_dispatch,
METH_VARARGS | METH_KEYWORDS,
pygpu_compute_dispatch_doc},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * pygpu_compute_dispatch(PyObject *, PyObject *args, PyObject *kwds)

Definition at line 111 of file gpu_py_compute.cc.

◆ pygpu_compute_module_def

PyModuleDef pygpu_compute_module_def
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"gpu.compute",
pygpu_compute__tp_doc,
0,
nullptr,
nullptr,
nullptr,
nullptr,
}
static PyMethodDef pygpu_compute__tp_methods[]

Definition at line 127 of file gpu_py_compute.cc.

Referenced by bpygpu_compute_init().