23 ".. function:: max_texture_size_get()\n"
25 " Get estimated maximum texture size to be able to handle.\n"
27 " :return: Texture size.\n"
35 ".. function:: max_texture_layers_get()\n"
37 " Get maximum number of layers in texture.\n"
39 " :return: Number of layers.\n"
47 ".. function:: max_textures_get()\n"
49 " Get maximum supported texture image units used for\n"
50 " accessing texture maps from the vertex shader and the\n"
51 " fragment processor.\n"
53 " :return: Texture image units.\n"
61 ".. function:: max_textures_vert_get()\n"
63 " Get maximum supported texture image units used for\n"
64 " accessing texture maps from the vertex shader.\n"
66 " :return: Texture image units.\n"
74 ".. function:: max_textures_geom_get()\n"
76 " Get maximum supported texture image units used for\n"
77 " accessing texture maps from the geometry shader.\n"
79 " :return: Texture image units.\n"
87 ".. function:: max_textures_frag_get()\n"
89 " Get maximum supported texture image units used for\n"
90 " accessing texture maps from the fragment shader.\n"
92 " :return: Texture image units.\n"
100 ".. function:: max_uniforms_vert_get()\n"
102 " Get maximum number of values held in uniform variable\n"
103 " storage for a vertex shader.\n"
105 " :return: Number of values.\n"
113 ".. function:: max_uniforms_frag_get()\n"
115 " Get maximum number of values held in uniform variable\n"
116 " storage for a fragment shader.\n"
118 " :return: Number of values.\n"
126 ".. function:: max_batch_indices_get()\n"
128 " Get maximum number of vertex array indices.\n"
130 " :return: Number of indices.\n"
138 ".. function:: max_batch_vertices_get()\n"
140 " Get maximum number of vertex array vertices.\n"
142 " :return: Number of vertices.\n"
150 ".. function:: max_vertex_attribs_get()\n"
152 " Get maximum number of vertex attributes accessible to\n"
153 " a vertex shader.\n"
155 " :return: Number of attributes.\n"
163 ".. function:: max_varying_floats_get()\n"
165 " Get maximum number of varying variables used by\n"
166 " vertex and fragment shaders.\n"
168 " :return: Number of variables.\n"
176 ".. function:: extensions_get()\n"
178 " Get supported extensions in the current context.\n"
180 " :return: Extensions.\n"
181 " :rtype: tuple of string\n");
185 PyObject *
ret = PyTuple_New(extensions_len);
186 PyObject **ob_items = ((PyTupleObject *)
ret)->ob_item;
187 for (
int i = 0; i < extensions_len; i++) {
201 {
"max_texture_size_get",
204 pygpu_max_texture_size_get_doc},
205 {
"max_texture_layers_get",
208 pygpu_max_texture_layers_get_doc},
212 pygpu_max_textures_get_doc},
213 {
"max_textures_vert_get",
216 pygpu_max_textures_vert_get_doc},
217 {
"max_textures_geom_get",
220 pygpu_max_textures_geom_get_doc},
221 {
"max_textures_frag_get",
224 pygpu_max_textures_frag_get_doc},
225 {
"max_uniforms_vert_get",
228 pygpu_max_uniforms_vert_get_doc},
229 {
"max_uniforms_frag_get",
232 pygpu_max_uniforms_frag_get_doc},
233 {
"max_batch_indices_get",
236 pygpu_max_batch_indices_get_doc},
237 {
"max_batch_vertices_get",
240 pygpu_max_batch_vertices_get_doc},
241 {
"max_vertex_attribs_get",
244 pygpu_max_vertex_attribs_get_doc},
245 {
"max_varying_floats_get",
248 pygpu_max_varying_floats_get_doc},
253 PyDoc_STRVAR(pygpu_capabilities__tp_doc,
"This module provides access to the GPU capabilities.");
255 PyModuleDef_HEAD_INIT,
256 .m_name =
"gpu.capabilities",
257 .m_doc = pygpu_capabilities__tp_doc,
int GPU_max_textures_vert(void)
int GPU_max_texture_size(void)
int GPU_max_textures_frag(void)
int GPU_max_uniforms_frag(void)
int GPU_max_texture_layers(void)
int GPU_max_batch_indices(void)
int GPU_max_textures_geom(void)
const char * GPU_extension_get(int i)
int GPU_max_textures(void)
int GPU_max_batch_vertices(void)
int GPU_extensions_len(void)
int GPU_max_uniforms_vert(void)
int GPU_max_varying_floats(void)
int GPU_max_vertex_attribs(void)
static PyObject * pygpu_max_texture_layers_get(PyObject *UNUSED(self))
static PyObject * pygpu_max_vertex_attribs_get(PyObject *UNUSED(self))
PyObject * bpygpu_capabilities_init(void)
static PyObject * pygpu_max_textures_geom_get(PyObject *UNUSED(self))
static PyObject * pygpu_max_textures_frag_get(PyObject *UNUSED(self))
static PyObject * pygpu_max_textures_get(PyObject *UNUSED(self))
static PyObject * pygpu_extensions_get(PyObject *UNUSED(self))
static PyObject * pygpu_max_texture_size_get(PyObject *UNUSED(self))
static PyObject * pygpu_max_varying_floats_get(PyObject *UNUSED(self))
static PyObject * pygpu_max_textures_vert_get(PyObject *UNUSED(self))
static PyObject * pygpu_max_uniforms_frag_get(PyObject *UNUSED(self))
static PyObject * pygpu_max_batch_indices_get(PyObject *UNUSED(self))
static PyModuleDef pygpu_capabilities_module_def
static PyObject * pygpu_max_uniforms_vert_get(PyObject *UNUSED(self))
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 struct PyMethodDef pygpu_capabilities__tp_methods[]
static PyObject * pygpu_max_batch_vertices_get(PyObject *UNUSED(self))