Blender  V3.3
gpu_py_capabilities.c File Reference
#include <Python.h>
#include "BLI_utildefines.h"
#include "GPU_capabilities.h"
#include "gpu_py_capabilities.h"

Go to the source code of this file.

Functions

Functions
 PyDoc_STRVAR (pygpu_max_texture_size_get_doc, ".. function:: max_texture_size_get()\n" "\n" " Get estimated maximum texture size to be able to handle.\n" "\n" " :return: Texture size.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_texture_size_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_texture_layers_get_doc, ".. function:: max_texture_layers_get()\n" "\n" " Get maximum number of layers in texture.\n" "\n" " :return: Number of layers.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_texture_layers_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_textures_get_doc, ".. function:: max_textures_get()\n" "\n" " Get maximum supported texture image units used for\n" " accessing texture maps from the vertex shader and the\n" " fragment processor.\n" "\n" " :return: Texture image units.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_textures_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_textures_vert_get_doc, ".. function:: max_textures_vert_get()\n" "\n" " Get maximum supported texture image units used for\n" " accessing texture maps from the vertex shader.\n" "\n" " :return: Texture image units.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_textures_vert_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_textures_geom_get_doc, ".. function:: max_textures_geom_get()\n" "\n" " Get maximum supported texture image units used for\n" " accessing texture maps from the geometry shader.\n" "\n" " :return: Texture image units.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_textures_geom_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_textures_frag_get_doc, ".. function:: max_textures_frag_get()\n" "\n" " Get maximum supported texture image units used for\n" " accessing texture maps from the fragment shader.\n" "\n" " :return: Texture image units.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_textures_frag_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_uniforms_vert_get_doc, ".. function:: max_uniforms_vert_get()\n" "\n" " Get maximum number of values held in uniform variable\n" " storage for a vertex shader.\n" "\n" " :return: Number of values.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_uniforms_vert_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_uniforms_frag_get_doc, ".. function:: max_uniforms_frag_get()\n" "\n" " Get maximum number of values held in uniform variable\n" " storage for a fragment shader.\n" "\n" " :return: Number of values.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_uniforms_frag_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_batch_indices_get_doc, ".. function:: max_batch_indices_get()\n" "\n" " Get maximum number of vertex array indices.\n" "\n" " :return: Number of indices.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_batch_indices_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_batch_vertices_get_doc, ".. function:: max_batch_vertices_get()\n" "\n" " Get maximum number of vertex array vertices.\n" "\n" " :return: Number of vertices.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_batch_vertices_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_vertex_attribs_get_doc, ".. function:: max_vertex_attribs_get()\n" "\n" " Get maximum number of vertex attributes accessible to\n" " a vertex shader.\n" "\n" " :return: Number of attributes.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_vertex_attribs_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_max_varying_floats_get_doc, ".. function:: max_varying_floats_get()\n" "\n" " Get maximum number of varying variables used by\n" " vertex and fragment shaders.\n" "\n" " :return: Number of variables.\n" " :rtype: int\n")
 
static PyObject * pygpu_max_varying_floats_get (PyObject *UNUSED(self))
 
 PyDoc_STRVAR (pygpu_extensions_get_doc, ".. function:: extensions_get()\n" "\n" " Get supported extensions in the current context.\n" "\n" " :return: Extensions.\n" " :rtype: tuple of string\n")
 
static PyObject * pygpu_extensions_get (PyObject *UNUSED(self))
 

Module

static struct PyMethodDef pygpu_capabilities__tp_methods []
 
static PyModuleDef pygpu_capabilities_module_def
 
 PyDoc_STRVAR (pygpu_capabilities__tp_doc, "This module provides access to the GPU capabilities.")
 
PyObject * bpygpu_capabilities_init (void)
 

Detailed Description

Definition in file gpu_py_capabilities.c.

Function Documentation

◆ bpygpu_capabilities_init()

PyObject* bpygpu_capabilities_init ( void  )

Definition at line 261 of file gpu_py_capabilities.c.

References pygpu_capabilities_module_def.

Referenced by BPyInit_gpu().

◆ PyDoc_STRVAR() [1/14]

PyDoc_STRVAR ( pygpu_capabilities__tp_doc  ,
"This module provides access to the GPU capabilities."   
)

◆ PyDoc_STRVAR() [2/14]

PyDoc_STRVAR ( pygpu_extensions_get_doc  ,
".. function:: extensions_get()\n" "\n" " Get supported extensions in the current context.\n" "\n" " :return: Extensions.\n" " :rtype: tuple of string\n"   
)

◆ PyDoc_STRVAR() [3/14]

PyDoc_STRVAR ( pygpu_max_batch_indices_get_doc  ,
".. function:: max_batch_indices_get()\n" "\n" " Get maximum number of vertex array indices.\n" "\n" " :return: Number of indices.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [4/14]

PyDoc_STRVAR ( pygpu_max_batch_vertices_get_doc  ,
".. function:: max_batch_vertices_get()\n" "\n" " Get maximum number of vertex array vertices.\n" "\n" " :return: Number of vertices.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [5/14]

PyDoc_STRVAR ( pygpu_max_texture_layers_get_doc  ,
".. function:: max_texture_layers_get()\n" "\n" " Get maximum number of layers in texture.\n" "\n" " :return: Number of layers.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [6/14]

PyDoc_STRVAR ( pygpu_max_texture_size_get_doc  ,
".. function:: max_texture_size_get()\n" "\n" " Get estimated maximum texture size to be able to handle.\n" "\n" " :return: Texture size.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [7/14]

PyDoc_STRVAR ( pygpu_max_textures_frag_get_doc  ,
".. function:: max_textures_frag_get()\n" "\n" " Get maximum supported texture image units used for\n" " accessing texture maps from the fragment shader.\n" "\n" " :return: Texture image units.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [8/14]

PyDoc_STRVAR ( pygpu_max_textures_geom_get_doc  ,
".. function:: max_textures_geom_get()\n" "\n" " Get maximum supported texture image units used for\n" " accessing texture maps from the geometry shader.\n" "\n" " :return: Texture image units.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [9/14]

PyDoc_STRVAR ( pygpu_max_textures_get_doc  ,
".. function:: max_textures_get()\n" "\n" " Get maximum supported texture image units used for\n" " accessing texture maps from the vertex shader and the\n" " fragment processor.\n" "\n" " :return: Texture image units.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [10/14]

PyDoc_STRVAR ( pygpu_max_textures_vert_get_doc  ,
".. function:: max_textures_vert_get()\n" "\n" " Get maximum supported texture image units used for\n" " accessing texture maps from the vertex shader.\n" "\n" " :return: Texture image units.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [11/14]

PyDoc_STRVAR ( pygpu_max_uniforms_frag_get_doc  ,
".. function:: max_uniforms_frag_get()\n" "\n" " Get maximum number of values held in uniform variable\n" " storage for a fragment shader.\n" "\n" " :return: Number of values.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [12/14]

PyDoc_STRVAR ( pygpu_max_uniforms_vert_get_doc  ,
".. function:: max_uniforms_vert_get()\n" "\n" " Get maximum number of values held in uniform variable\n" " storage for a vertex shader.\n" "\n" " :return: Number of values.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [13/14]

PyDoc_STRVAR ( pygpu_max_varying_floats_get_doc  ,
".. function:: max_varying_floats_get()\n" "\n" " Get maximum number of varying variables used by\n" " vertex and fragment shaders.\n" "\n" " :return: Number of variables.\n" " :rtype: int\n"   
)

◆ PyDoc_STRVAR() [14/14]

PyDoc_STRVAR ( pygpu_max_vertex_attribs_get_doc  ,
".. function:: max_vertex_attribs_get()\n" "\n" " Get maximum number of vertex attributes accessible to\n" " a vertex shader.\n" "\n" " :return: Number of attributes.\n" " :rtype: int\n"   
)

◆ pygpu_extensions_get()

static PyObject* pygpu_extensions_get ( PyObject *  UNUSEDself)
static

Definition at line 182 of file gpu_py_capabilities.c.

◆ pygpu_max_batch_indices_get()

static PyObject* pygpu_max_batch_indices_get ( PyObject *  UNUSEDself)
static

Definition at line 132 of file gpu_py_capabilities.c.

References GPU_max_batch_indices().

◆ pygpu_max_batch_vertices_get()

static PyObject* pygpu_max_batch_vertices_get ( PyObject *  UNUSEDself)
static

Definition at line 144 of file gpu_py_capabilities.c.

References GPU_max_batch_vertices().

◆ pygpu_max_texture_layers_get()

static PyObject* pygpu_max_texture_layers_get ( PyObject *  UNUSEDself)
static

Definition at line 41 of file gpu_py_capabilities.c.

References GPU_max_texture_layers().

◆ pygpu_max_texture_size_get()

static PyObject* pygpu_max_texture_size_get ( PyObject *  UNUSEDself)
static

Definition at line 29 of file gpu_py_capabilities.c.

References GPU_max_texture_size().

◆ pygpu_max_textures_frag_get()

static PyObject* pygpu_max_textures_frag_get ( PyObject *  UNUSEDself)
static

Definition at line 94 of file gpu_py_capabilities.c.

References GPU_max_textures_frag().

◆ pygpu_max_textures_geom_get()

static PyObject* pygpu_max_textures_geom_get ( PyObject *  UNUSEDself)
static

Definition at line 81 of file gpu_py_capabilities.c.

References GPU_max_textures_geom().

◆ pygpu_max_textures_get()

static PyObject* pygpu_max_textures_get ( PyObject *  UNUSEDself)
static

Definition at line 55 of file gpu_py_capabilities.c.

References GPU_max_textures().

◆ pygpu_max_textures_vert_get()

static PyObject* pygpu_max_textures_vert_get ( PyObject *  UNUSEDself)
static

Definition at line 68 of file gpu_py_capabilities.c.

References GPU_max_textures_vert().

◆ pygpu_max_uniforms_frag_get()

static PyObject* pygpu_max_uniforms_frag_get ( PyObject *  UNUSEDself)
static

Definition at line 120 of file gpu_py_capabilities.c.

References GPU_max_uniforms_frag().

◆ pygpu_max_uniforms_vert_get()

static PyObject* pygpu_max_uniforms_vert_get ( PyObject *  UNUSEDself)
static

Definition at line 107 of file gpu_py_capabilities.c.

References GPU_max_uniforms_vert().

◆ pygpu_max_varying_floats_get()

static PyObject* pygpu_max_varying_floats_get ( PyObject *  UNUSEDself)
static

Definition at line 170 of file gpu_py_capabilities.c.

References GPU_max_varying_floats().

◆ pygpu_max_vertex_attribs_get()

static PyObject* pygpu_max_vertex_attribs_get ( PyObject *  UNUSEDself)
static

Definition at line 157 of file gpu_py_capabilities.c.

References GPU_max_vertex_attribs().

Variable Documentation

◆ pygpu_capabilities__tp_methods

struct PyMethodDef pygpu_capabilities__tp_methods[]
static

Definition at line 182 of file gpu_py_capabilities.c.

◆ pygpu_capabilities_module_def

PyModuleDef pygpu_capabilities_module_def
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
.m_name = "gpu.capabilities",
.m_doc = pygpu_capabilities__tp_doc,
}
static struct PyMethodDef pygpu_capabilities__tp_methods[]

Definition at line 254 of file gpu_py_capabilities.c.

Referenced by bpygpu_capabilities_init().