Skip to content

Commit d0fb2dc

Browse files
committed
Verify enum values exposed by the PLS extension.
1 parent 8325d16 commit d0fb2dc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

sdk/tests/conformance2/extensions/webgl-shader-pixel-local-storage.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
}
6666
checkDependencyExtensionsEnabled(true);
6767

68+
checkEnums();
6869
checkImplementationDependentLimits();
6970
checkInitialValues();
7071
checkWebGLNonNormativeBehavior();
@@ -116,6 +117,24 @@
116117
}
117118
}
118119

120+
function checkEnums() {
121+
debug("\nVerify the extension's enum values, since they changed during the extension's development.");
122+
shouldBe("pls.MAX_PIXEL_LOCAL_STORAGE_PLANES_WEBGL", "0x96E0");
123+
shouldBe("pls.MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_WEBGL", "0x96E1");
124+
shouldBe("pls.PIXEL_LOCAL_STORAGE_ACTIVE_PLANES_WEBGL", "0x96E2");
125+
shouldBe("pls.LOAD_OP_ZERO_WEBGL", "0x96E3");
126+
shouldBe("pls.LOAD_OP_CLEAR_WEBGL", "0x96E4");
127+
shouldBe("pls.LOAD_OP_LOAD_WEBGL", "0x96E5");
128+
shouldBe("pls.STORE_OP_STORE_WEBGL", "0x96E6");
129+
shouldBe("pls.PIXEL_LOCAL_FORMAT_WEBGL", "0x96E7");
130+
shouldBe("pls.PIXEL_LOCAL_TEXTURE_NAME_WEBGL", "0x96E8");
131+
shouldBe("pls.PIXEL_LOCAL_TEXTURE_LEVEL_WEBGL", "0x96E9");
132+
shouldBe("pls.PIXEL_LOCAL_TEXTURE_LAYER_WEBGL", "0x96EA");
133+
shouldBe("pls.PIXEL_LOCAL_CLEAR_VALUE_FLOAT_WEBGL", "0x96EB");
134+
shouldBe("pls.PIXEL_LOCAL_CLEAR_VALUE_INT_WEBGL", "0x96EC");
135+
shouldBe("pls.PIXEL_LOCAL_CLEAR_VALUE_UNSIGNED_INT_WEBGL", "0x96ED");
136+
}
137+
119138
function checkImplementationDependentLimits() {
120139
debug("\nVerify conformant implementation-dependent PLS limits.");
121140
window.MAX_PIXEL_LOCAL_STORAGE_PLANES =

0 commit comments

Comments
 (0)