Add support for WebGL2 TexStorage2D

Adds initial support for the WebGL2 `TexStorage2D` call, adds
support for the related texture enums and enables some of the
texture tests.

See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.6
This commit is contained in:
Mátyás Mustoha 2020-03-12 14:55:46 +01:00 committed by Josh Matthews
parent 3bedd44026
commit 8789a6a8d8
63 changed files with 1906 additions and 384 deletions

View file

@ -1,52 +1,55 @@
[ext-color-buffer-float.html]
[WebGL test #11: getError expected: NO_ERROR. Was INVALID_ENUM : floating-point texture allocation should succeed]
expected: FAIL
[WebGL test #57: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
expected: FAIL
[WebGL test #17: getError expected: NO_ERROR. Was INVALID_ENUM : floating-point texture allocation should succeed]
expected: FAIL
[WebGL test #8: getError expected: NO_ERROR. Was INVALID_ENUM : floating-point texture allocation should succeed]
expected: FAIL
[WebGL test #48: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
expected: FAIL
[WebGL test #5: getError expected: NO_ERROR. Was INVALID_ENUM : floating-point texture allocation should succeed]
expected: FAIL
[WebGL test #45: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
expected: FAIL
[WebGL test #42: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
expected: FAIL
[WebGL test #30: getError expected: NO_ERROR. Was INVALID_ENUM : RGB16F texture allocation should succeed]
expected: FAIL
[WebGL test #33: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
expected: FAIL
[WebGL test #2: getError expected: NO_ERROR. Was INVALID_ENUM : floating-point texture allocation should succeed]
expected: FAIL
[WebGL test #14: getError expected: NO_ERROR. Was INVALID_ENUM : floating-point texture allocation should succeed]
expected: FAIL
[WebGL test #20: getError expected: NO_ERROR. Was INVALID_ENUM : floating-point texture allocation should succeed]
[WebGL test #43: gl.checkFramebufferStatus(gl.FRAMEBUFFER) should be 36054. Was 36053.]
expected: FAIL
[WebGL test #51: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
expected: FAIL
[WebGL test #54: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
[WebGL test #55: gl.checkFramebufferStatus(gl.FRAMEBUFFER) should be 36054. Was 36053.]
expected: FAIL
[WebGL test #36: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
[WebGL test #18: floating-point RGBA32F render target should not be supported without enabling EXT_color_buffer_float]
expected: FAIL
[WebGL test #59: getError expected one of: INVALID_ENUM or INVALID_FRAMEBUFFER_OPERATION. Was INVALID_OPERATION : CopyTexImage2D should fail.]
expected: FAIL
[WebGL test #45: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
expected: FAIL
[WebGL test #38: getError expected one of: INVALID_ENUM or INVALID_FRAMEBUFFER_OPERATION. Was INVALID_OPERATION : CopyTexImage2D should fail.]
expected: FAIL
[WebGL test #56: getError expected one of: INVALID_ENUM or INVALID_FRAMEBUFFER_OPERATION. Was INVALID_OPERATION : CopyTexImage2D should fail.]
expected: FAIL
[WebGL test #44: getError expected one of: INVALID_ENUM or INVALID_FRAMEBUFFER_OPERATION. Was INVALID_OPERATION : CopyTexImage2D should fail.]
expected: FAIL
[WebGL test #33: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
expected: FAIL
[WebGL test #58: gl.checkFramebufferStatus(gl.FRAMEBUFFER) should be 36054. Was 36053.]
expected: FAIL
[WebGL test #31: RGB16F render target should not be supported with or without enabling EXT_color_buffer_float]
expected: FAIL
[WebGL test #37: gl.checkFramebufferStatus(gl.FRAMEBUFFER) should be 36054. Was 36053.]
expected: FAIL
[WebGL test #49: gl.checkFramebufferStatus(gl.FRAMEBUFFER) should be 36054. Was 36053.]
expected: FAIL
[WebGL test #21: floating-point R11F_G11F_B10F render target should not be supported without enabling EXT_color_buffer_float]
expected: FAIL
[WebGL test #9: floating-point RGBA16F render target should not be supported without enabling EXT_color_buffer_float]
expected: FAIL
[WebGL test #39: getError expected: NO_ERROR. Was INVALID_ENUM : Setup framebuffer with texture should succeed.]
expected: FAIL
[WebGL test #50: getError expected one of: INVALID_ENUM or INVALID_FRAMEBUFFER_OPERATION. Was INVALID_OPERATION : CopyTexImage2D should fail.]
expected: FAIL