|
Blender V4.3
|
#include <Python.h>#include "BLI_utildefines.h"#include "GPU_context.hh"#include "GPU_platform.hh"#include "gpu_py.hh"#include "gpu_py_platform.hh"Go to the source code of this file.
Functions | |
Functions | |
| PyDoc_STRVAR (pygpu_platform_vendor_get_doc, ".. function:: vendor_get()\n" "\n" " Get GPU vendor.\n" "\n" " :return: Vendor name.\n" " :rtype: str\n") | |
| static PyObject * | pygpu_platform_vendor_get (PyObject *) |
| PyDoc_STRVAR (pygpu_platform_renderer_get_doc, ".. function:: renderer_get()\n" "\n" " Get GPU to be used for rendering.\n" "\n" " :return: GPU name.\n" " :rtype: str\n") | |
| static PyObject * | pygpu_platform_renderer_get (PyObject *) |
| PyDoc_STRVAR (pygpu_platform_version_get_doc, ".. function:: version_get()\n" "\n" " Get GPU driver version.\n" "\n" " :return: Driver version.\n" " :rtype: str\n") | |
| static PyObject * | pygpu_platform_version_get (PyObject *) |
| PyDoc_STRVAR (pygpu_platform_device_type_get_doc, ".. function:: device_type_get()\n" "\n" " Get GPU device type.\n" "\n" " :return: Device type ('APPLE', 'NVIDIA', 'AMD', 'INTEL', 'SOFTWARE', 'QUALCOMM', " "'UNKNOWN').\n" " :rtype: str\n") | |
| static PyObject * | pygpu_platform_device_type_get (PyObject *) |
| PyDoc_STRVAR (pygpu_platform_backend_type_get_doc, ".. function:: backend_type_get()\n" "\n" " Get actuve GPU backend.\n" "\n" " :return: Backend type ('OPENGL', 'VULKAN', 'METAL', 'NONE', 'UNKNOWN').\n" " :rtype: str\n") | |
| static PyObject * | pygpu_platform_backend_type_get (PyObject *) |
Module | |
| static PyMethodDef | pygpu_platform__tp_methods [] |
| static PyModuleDef | pygpu_platform_module_def |
| PyDoc_STRVAR (pygpu_platform__tp_doc, "This module provides access to GPU Platform definitions.") | |
| PyObject * | bpygpu_platform_init () |
bpygpu_ for local API.BPyGPU for public API. Definition in file gpu_py_platform.cc.
| PyObject * bpygpu_platform_init | ( | ) |
Definition at line 206 of file gpu_py_platform.cc.
References pygpu_platform_module_def.
Referenced by BPyInit_gpu().
| PyDoc_STRVAR | ( | pygpu_platform__tp_doc | , |
| "This module provides access to GPU Platform definitions." | ) |
| PyDoc_STRVAR | ( | pygpu_platform_backend_type_get_doc | , |
| ".. function:: backend_type_get()\n" "\n" " Get actuve GPU backend.\n" "\n" " :return: Backend type ('OPENGL', 'VULKAN', 'METAL', 'NONE', 'UNKNOWN').\n" " :rtype: str\n" | ) |
| PyDoc_STRVAR | ( | pygpu_platform_device_type_get_doc | , |
| ".. function:: device_type_get()\n" "\n" " Get GPU device type.\n" "\n" " :return: Device type ('APPLE', 'NVIDIA', 'AMD', 'INTEL', 'SOFTWARE', 'QUALCOMM', " "'UNKNOWN').\n" " :rtype: str\n" | ) |
| PyDoc_STRVAR | ( | pygpu_platform_renderer_get_doc | , |
| ".. function:: renderer_get()\n" "\n" " Get GPU to be used for rendering.\n" "\n" " :return: GPU name.\n" " :rtype: str\n" | ) |
| PyDoc_STRVAR | ( | pygpu_platform_vendor_get_doc | , |
| ".. function:: vendor_get()\n" "\n" " Get GPU vendor.\n" "\n" " :return: Vendor name.\n" " :rtype: str\n" | ) |
| PyDoc_STRVAR | ( | pygpu_platform_version_get_doc | , |
| ".. function:: version_get()\n" "\n" " Get GPU driver version.\n" "\n" " :return: Driver version.\n" " :rtype: str\n" | ) |
|
static |
Definition at line 123 of file gpu_py_platform.cc.
References BPYGPU_IS_INIT_OR_ERROR_OBJ, GPU_BACKEND_ANY, GPU_backend_get_type(), GPU_BACKEND_METAL, GPU_BACKEND_NONE, GPU_BACKEND_OPENGL, and GPU_BACKEND_VULKAN.
|
static |
Definition at line 84 of file gpu_py_platform.cc.
References BPYGPU_IS_INIT_OR_ERROR_OBJ, GPU_DEVICE_APPLE, GPU_DEVICE_ATI, GPU_DEVICE_INTEL, GPU_DEVICE_INTEL_UHD, GPU_DEVICE_NVIDIA, GPU_DEVICE_QUALCOMM, GPU_DEVICE_SOFTWARE, GPU_DRIVER_ANY, GPU_OS_ANY, GPU_OS_WIN, and GPU_type_matches().
|
static |
Definition at line 51 of file gpu_py_platform.cc.
References BPYGPU_IS_INIT_OR_ERROR_OBJ, and GPU_platform_renderer().
|
static |
Definition at line 35 of file gpu_py_platform.cc.
References BPYGPU_IS_INIT_OR_ERROR_OBJ, and GPU_platform_vendor().
|
static |
Definition at line 67 of file gpu_py_platform.cc.
References BPYGPU_IS_INIT_OR_ERROR_OBJ, and GPU_platform_version().
|
static |
Definition at line 162 of file gpu_py_platform.cc.
|
static |
Definition at line 194 of file gpu_py_platform.cc.
Referenced by bpygpu_platform_init().