Add support for WebGL2 MIN_PROGRAM_TEXEL_OFFSET

Improves the support of the WebGL2 `MIN_PROGRAM_TEXEL_OFFSET` property
(ie. stores it as a signed integer) and adds support for querying it
using GetParameter.

See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
This commit is contained in:
Mátyás Mustoha 2020-04-28 10:00:14 +02:00
parent ff33b88f72
commit 1431a389da
4 changed files with 14 additions and 8 deletions

View file

@ -1057,7 +1057,7 @@ pub struct GLLimits {
pub max_draw_buffers: u32,
pub max_color_attachments: u32,
pub max_uniform_buffer_bindings: u32,
pub min_program_texel_offset: u32,
pub min_program_texel_offset: i32,
pub max_program_texel_offset: u32,
pub max_uniform_block_size: u64,
pub max_combined_uniform_blocks: u32,