mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Add support for even more WebGL2 GetParameter enums
Adds support for the following new WebGL2 GetParameter values: - `PACK_ROW_LENGTH` - `PACK_SKIP_PIXELS` - `PACK_SKIP_ROWS` - `RASTERIZER_DISCARD` - `UNPACK_IMAGE_HEIGHT` - `UNPACK_ROW_LENGTH` - `UNPACK_SKIP_IMAGES` - `UNPACK_SKIP_PIXELS` - `UNPACK_SKIP_ROWS` See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
This commit is contained in:
parent
3bedd44026
commit
ff33b88f72
2 changed files with 9 additions and 27 deletions
|
@ -793,6 +793,7 @@ parameters! {
|
|||
SampleCoverageInvert = gl::SAMPLE_COVERAGE_INVERT,
|
||||
TransformFeedbackActive = gl::TRANSFORM_FEEDBACK_ACTIVE,
|
||||
TransformFeedbackPaused = gl::TRANSFORM_FEEDBACK_PAUSED,
|
||||
RasterizerDiscard = gl::RASTERIZER_DISCARD,
|
||||
}),
|
||||
Bool4(ParameterBool4 {
|
||||
ColorWritemask = gl::COLOR_WRITEMASK,
|
||||
|
@ -840,6 +841,14 @@ parameters! {
|
|||
MaxTransformFeedbackSeparateComponents = gl::MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS,
|
||||
TransformFeedbackBufferSize = gl::TRANSFORM_FEEDBACK_BUFFER_SIZE,
|
||||
TransformFeedbackBufferStart = gl::TRANSFORM_FEEDBACK_BUFFER_START,
|
||||
PackRowLength = gl::PACK_ROW_LENGTH,
|
||||
PackSkipPixels = gl::PACK_SKIP_PIXELS,
|
||||
PackSkipRows = gl::PACK_SKIP_ROWS,
|
||||
UnpackImageHeight = gl::UNPACK_IMAGE_HEIGHT,
|
||||
UnpackRowLength = gl::UNPACK_ROW_LENGTH,
|
||||
UnpackSkipImages = gl::UNPACK_SKIP_IMAGES,
|
||||
UnpackSkipPixels = gl::UNPACK_SKIP_PIXELS,
|
||||
UnpackSkipRows = gl::UNPACK_SKIP_ROWS,
|
||||
}),
|
||||
Int2(ParameterInt2 {
|
||||
MaxViewportDims = gl::MAX_VIEWPORT_DIMS,
|
||||
|
|
|
@ -5,36 +5,9 @@
|
|||
[WebGL test #80: context.getParameter(context.MIN_PROGRAM_TEXEL_OFFSET) is not an instance of Number]
|
||||
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 #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 #29: context.getParameter(context.UNPACK_SKIP_ROWS) should be 0 (of type number). 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 #79: context.getParameter(context.MIN_PROGRAM_TEXEL_OFFSET) should be >= -8. Was null (of type object).]
|
||||
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 #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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue