summaryrefslogtreecommitdiff
path: root/tests/reflection/image-types.glsl
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-11 12:18:13 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-11 12:18:13 -0700
commit0cd5602383d1ae85276eacec69d51a15a9e975f4 (patch)
treee3da0ad8cb61eb5486c4c7fbc2e59d2fc934fa88 /tests/reflection/image-types.glsl
parent98b3e5bc95b6de081885798840c2deb79905a68f (diff)
Improve reporting of GLSL `image*` types
- Update stdlib so taht `image*` types have read-write access encoded in their type - TODO: this isn't 100% right, since there are GLSL qualifiers that might override this - Add a test case to verify that the reflection API reports `image*` parameters
Diffstat (limited to 'tests/reflection/image-types.glsl')
-rw-r--r--tests/reflection/image-types.glsl10
1 files changed, 10 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()
+{}