GPU Capabilities Utilities (gpu.capabilities)
This module provides access to the GPU capabilities.
- gpu.capabilities.compute_shader_support_get()
Are compute shaders supported.
- Returns:
True when supported, False when not supported.
- Return type:
bool
- gpu.capabilities.extensions_get()
Get supported extensions in the current context.
- Returns:
Extensions.
- Return type:
tuple of string
- gpu.capabilities.hdr_support_get()
Return whether GPU backend supports High Dynamic range for viewport.
- return:
HDR support available.
- rtype:
bool
- gpu.capabilities.max_batch_indices_get()
Get maximum number of vertex array indices.
- Returns:
Number of indices.
- Return type:
int
- gpu.capabilities.max_batch_vertices_get()
Get maximum number of vertex array vertices.
- Returns:
Number of vertices.
- Return type:
int
- gpu.capabilities.max_texture_layers_get()
Get maximum number of layers in texture.
- Returns:
Number of layers.
- Return type:
int
- gpu.capabilities.max_texture_size_get()
Get estimated maximum texture size to be able to handle.
- Returns:
Texture size.
- Return type:
int
- gpu.capabilities.max_textures_frag_get()
Get maximum supported texture image units used for accessing texture maps from the fragment shader.
- Returns:
Texture image units.
- Return type:
int
- gpu.capabilities.max_textures_geom_get()
Get maximum supported texture image units used for accessing texture maps from the geometry shader.
- Returns:
Texture image units.
- Return type:
int
- gpu.capabilities.max_textures_get()
Get maximum supported texture image units used for accessing texture maps from the vertex shader and the fragment processor.
- Returns:
Texture image units.
- Return type:
int
- gpu.capabilities.max_textures_vert_get()
Get maximum supported texture image units used for accessing texture maps from the vertex shader.
- Returns:
Texture image units.
- Return type:
int
- gpu.capabilities.max_uniforms_frag_get()
Get maximum number of values held in uniform variable storage for a fragment shader.
- Returns:
Number of values.
- Return type:
int
- gpu.capabilities.max_uniforms_vert_get()
Get maximum number of values held in uniform variable storage for a vertex shader.
- Returns:
Number of values.
- Return type:
int
- gpu.capabilities.max_varying_floats_get()
Get maximum number of varying variables used by vertex and fragment shaders.
- Returns:
Number of variables.
- Return type:
int
- gpu.capabilities.max_vertex_attribs_get()
Get maximum number of vertex attributes accessible to a vertex shader.
- Returns:
Number of attributes.
- Return type:
int
- gpu.capabilities.shader_image_load_store_support_get()
Is image load/store supported.
- Returns:
True when supported, False when not supported.
- Return type:
bool