Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for WebGL2
MAX_COLOR_ATTACHMENTS
and MAX_DRAW_BUFFERS
Adds support for using the WebGL2 enums `MAX_COLOR_ATTACHMENTS` and `MAX_DRAW_BUFFERS` with `GetParameter`. See https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
- Loading branch information
Showing
4 changed files
with
192 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/wpt/webgl/meta/conformance2/rendering/draw-buffers.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
[draw-buffers.html] | ||
expected: ERROR | ||
[WebGL test #1: MAX_DRAW_BUFFERS should be at least 4] | ||
expected: FAIL | ||
|
||
[WebGL test #2: getError expected: NO_ERROR. Was INVALID_ENUM : there should be no errors] | ||
expected: FAIL | ||
|
||
[WebGL test #4: getError expected: NO_ERROR. Was INVALID_ENUM : should be able to attach to the max attachment point: gl.COLOR_ATTACHMENT0 + 7] | ||
expected: FAIL | ||
|
||
[WebGL test #5: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).] | ||
expected: FAIL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters