summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/reflection/image-types.glsl10
-rw-r--r--tests/reflection/image-types.glsl.expected27
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/reflection/image-types.glsl b/tests/reflection/image-types.glsl
new file mode 100644
index 000000000..21cd2b629
--- /dev/null
+++ b/tests/reflection/image-types.glsl
@@ -0,0 +1,10 @@
+//TEST(smoke):SIMPLE:-profile ps_4_0 -target reflection-json
+
+// Confirm that we expose GLSL `image` types through reflection
+
+uniform imageBuffer iBuffer;
+
+uniform image2D i2D;
+
+void main()
+{}
diff --git a/tests/reflection/image-types.glsl.expected b/tests/reflection/image-types.glsl.expected
new file mode 100644
index 000000000..19d28f329
--- /dev/null
+++ b/tests/reflection/image-types.glsl.expected
@@ -0,0 +1,27 @@
+result code = 0
+standard error = {
+}
+standard output = {
+{
+ "parameters": [
+ {
+ "name": "iBuffer",
+ "binding": {"kind": "descriptorTableSlot", "index": 0},
+ "type": {
+ "kind": "resource",
+ "baseShape": "textureBuffer",
+ "access": "readWrite"
+ }
+ },
+ {
+ "name": "i2D",
+ "binding": {"kind": "descriptorTableSlot", "index": 1},
+ "type": {
+ "kind": "resource",
+ "baseShape": "texture2D",
+ "access": "readWrite"
+ }
+ }
+ ]
+}
+}