|
Blender V5.0
|
#include <Python.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 () |
Definition in file gpu_py_platform.cc.
|
nodiscard |
Definition at line 213 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 121 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 82 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 49 of file gpu_py_platform.cc.
References BPYGPU_IS_INIT_OR_ERROR_OBJ, and GPU_platform_renderer().
|
static |
Definition at line 33 of file gpu_py_platform.cc.
References BPYGPU_IS_INIT_OR_ERROR_OBJ, and GPU_platform_vendor().
|
static |
Definition at line 65 of file gpu_py_platform.cc.
References BPYGPU_IS_INIT_OR_ERROR_OBJ, and GPU_platform_version().
|
static |
Definition at line 165 of file gpu_py_platform.cc.
|
static |
Definition at line 201 of file gpu_py_platform.cc.
Referenced by bpygpu_platform_init().