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:
Mátyás Mustoha 2020-04-22 14:48:14 +02:00 committed by Josh Matthews
parent e69adfdd7a
commit c5f0bff99e
6 changed files with 147 additions and 115 deletions

View file

@ -1,103 +1,40 @@
[gl-get-calls.html]
[WebGL test #47: context.getParameter(context.MAX_FRAGMENT_INPUT_COMPONENTS) should be >= 60. Was null (of type object).]
[WebGL test #55: context.getParameter(context.MAX_SAMPLES) should be >= 4. Was 1 (of type number).]
expected: FAIL
[WebGL test #80: context.getParameter(context.MIN_PROGRAM_TEXEL_OFFSET) is not an instance of Number]
expected: FAIL
[WebGL test #33: context.getParameter(context.MAX_ARRAY_TEXTURE_LAYERS) should be >= 256. Was null (of type object).]
expected: FAIL
[WebGL test #26: context.getParameter(context.UNPACK_ROW_LENGTH) should be 0 (of type number). Was null (of type object).]
expected: FAIL
[WebGL test #7: context.getParameter(context.PACK_ROW_LENGTH) should be 0 (of type number). Was null (of type object).]
expected: FAIL
[WebGL test #43: context.getParameter(context.MAX_ELEMENT_INDEX) should be >= 16777215. Was null (of type object).]
expected: FAIL
[WebGL test #56: context.getParameter(context.MAX_PROGRAM_TEXEL_OFFSET) is not an instance of Number]
expected: FAIL
[WebGL test #45: context.getParameter(context.MAX_ELEMENTS_INDICES) is not an instance of Number]
expected: FAIL
[WebGL test #27: context.getParameter(context.UNPACK_SKIP_IMAGES) should be 0 (of type number). Was null (of type object).]
expected: FAIL
[WebGL test #87: context.getError() should be 0. Was 1280.]
expected: FAIL
[WebGL test #50: context.getParameter(context.MAX_FRAGMENT_INPUT_COMPONENTS) is not an instance of Number]
expected: FAIL
[WebGL test #53: context.getParameter(context.MAX_PROGRAM_TEXEL_OFFSET) should be >= 7. Was null (of type object).]
expected: FAIL
[WebGL test #55: context.getParameter(context.MAX_SAMPLES) should be >= 4. Was null (of type object).]
expected: FAIL
[WebGL test #29: context.getParameter(context.UNPACK_SKIP_ROWS) should be 0 (of type number). Was null (of type object).]
expected: FAIL
[WebGL test #54: context.getParameter(context.MAX_PROGRAM_TEXEL_OFFSET) is not an instance of Number]
expected: FAIL
[WebGL test #58: context.getParameter(context.MAX_SERVER_WAIT_TIMEOUT) is not an instance of Number]
expected: FAIL
[WebGL test #59: context.getParameter(context.MAX_TEXTURE_LOD_BIAS) should be >= 2.0. Was null (of type object).]
expected: FAIL
[WebGL test #25: context.getParameter(context.UNPACK_IMAGE_HEIGHT) should be 0 (of type number). Was null (of type object).]
expected: FAIL
[WebGL test #31: context.getParameter(context.MAX_3D_TEXTURE_SIZE) should be >= 256. Was null (of type object).]
expected: FAIL
[WebGL test #74: context.getParameter(context.MAX_VERTEX_OUTPUT_COMPONENTS) is not an instance of Number]
expected: FAIL
[WebGL test #73: context.getParameter(context.MAX_VERTEX_OUTPUT_COMPONENTS) should be >= 64. Was null (of type object).]
expected: FAIL
[WebGL test #72: context.getParameter(context.MAX_VARYING_COMPONENTS) is not an instance of Number]
expected: FAIL
[WebGL test #60: context.getParameter(context.MAX_TEXTURE_LOD_BIAS) is not an instance of Number]
expected: FAIL
[WebGL test #79: context.getParameter(context.MIN_PROGRAM_TEXEL_OFFSET) should be >= -8. Was null (of type object).]
expected: FAIL
[WebGL test #71: context.getParameter(context.MAX_VARYING_COMPONENTS) should be >= 60. Was null (of type object).]
expected: FAIL
[WebGL test #8: context.getParameter(context.PACK_SKIP_PIXELS) should be 0 (of type number). Was null (of type object).]
expected: FAIL
[WebGL test #48: context.getParameter(context.MAX_FRAGMENT_INPUT_COMPONENTS) is not an instance of Number]
expected: FAIL
[WebGL test #9: context.getParameter(context.PACK_SKIP_ROWS) should be 0 (of type number). Was null (of type object).]
expected: FAIL
[WebGL test #34: context.getParameter(context.MAX_ARRAY_TEXTURE_LAYERS) is not an instance of Number]
expected: FAIL
[WebGL test #46: context.getParameter(context.MAX_ELEMENTS_VERTICES) is not an instance of Number]
expected: FAIL
[WebGL test #12: context.getParameter(context.RASTERIZER_DISCARD) should be false (of type boolean). Was null (of type object).]
expected: FAIL
[WebGL test #44: context.getParameter(context.MAX_ELEMENT_INDEX) is not an instance of Number]
expected: FAIL
[WebGL test #28: context.getParameter(context.UNPACK_SKIP_PIXELS) should be 0 (of type number). Was null (of type object).]
expected: FAIL
[WebGL test #32: context.getParameter(context.MAX_3D_TEXTURE_SIZE) is not an instance of Number]
[WebGL test #8: context.getParameter(context.PACK_SKIP_PIXELS) should be 0 (of type number). Was null (of type object).]
expected: FAIL
[WebGL test #9: context.getParameter(context.PACK_SKIP_ROWS) should be 0 (of type number). Was null (of type object).]
expected: FAIL
[WebGL test #12: context.getParameter(context.RASTERIZER_DISCARD) should be false (of type boolean). Was null (of type object).]
expected: FAIL