mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add support for some more WebGL2 limit parameters
Adds support for the following new WebGL2 GetParameter values: - `MAX_ELEMENT_INDEX` - `MAX_ELEMENTS_INDICES` - `MAX_ELEMENTS_VERTICES` - `MAX_FRAGMENT_INPUT_COMPONENTS` - `MAX_SAMPLES` - `MAX_SERVER_WAIT_TIMEOUT` - `MAX_TEXTURE_LOD_BIAS` - `MAX_VARYING_COMPONENTS` - `MAX_VERTEX_OUTPUT_COMPONENTS` See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
This commit is contained in:
parent
e69adfdd7a
commit
c5f0bff99e
6 changed files with 147 additions and 115 deletions
|
@ -1050,10 +1050,10 @@ pub struct GLLimits {
|
|||
pub max_uniform_buffer_bindings: u32,
|
||||
pub min_program_texel_offset: u32,
|
||||
pub max_program_texel_offset: u32,
|
||||
pub max_uniform_block_size: u32,
|
||||
pub max_uniform_block_size: u64,
|
||||
pub max_combined_uniform_blocks: u32,
|
||||
pub max_combined_vertex_uniform_components: u32,
|
||||
pub max_combined_fragment_uniform_components: u32,
|
||||
pub max_combined_vertex_uniform_components: u64,
|
||||
pub max_combined_fragment_uniform_components: u64,
|
||||
pub max_vertex_uniform_blocks: u32,
|
||||
pub max_vertex_uniform_components: u32,
|
||||
pub max_fragment_uniform_blocks: u32,
|
||||
|
@ -1061,4 +1061,13 @@ pub struct GLLimits {
|
|||
pub max_3d_texture_size: u32,
|
||||
pub max_array_texture_layers: u32,
|
||||
pub uniform_buffer_offset_alignment: u32,
|
||||
pub max_element_index: u64,
|
||||
pub max_elements_indices: u32,
|
||||
pub max_elements_vertices: u32,
|
||||
pub max_fragment_input_components: u32,
|
||||
pub max_samples: u32,
|
||||
pub max_server_wait_timeout: std::time::Duration,
|
||||
pub max_texture_lod_bias: f32,
|
||||
pub max_varying_components: u32,
|
||||
pub max_vertex_output_components: u32,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue