summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-07-07 08:50:00 -0700
committerGitHub <noreply@github.com>2017-07-07 08:50:00 -0700
commitc47f23c2e61538c55819363f9db47ce946649027 (patch)
tree00c8e2aaf83735f86ce6bf71e6781ac579a55f64 /tests
parentaf8c0eae90c76d2c8f745badf6f743cefe15f777 (diff)
parent54519ed70fbe154e196d04a8b62f6ea6aeded52a (diff)
Merge pull request #56 from tfoleyNV/bug-55
Bug 55
Diffstat (limited to 'tests')
-rw-r--r--tests/reflection/gh-55.glsl13
-rw-r--r--tests/reflection/gh-55.glsl.expected45
2 files changed, 58 insertions, 0 deletions
diff --git a/tests/reflection/gh-55.glsl b/tests/reflection/gh-55.glsl
new file mode 100644
index 000000000..4ced68c9e
--- /dev/null
+++ b/tests/reflection/gh-55.glsl
@@ -0,0 +1,13 @@
+//TEST(smoke):SIMPLE:-profile ps_4_0 -target reflection-json
+
+// Confirm fix for GitHub issue #55
+
+layout(set = 0, binding = 0)
+uniform PerFrameCB
+{
+ vec2 offset;
+ vec2 scale;
+};
+
+void main()
+{}
diff --git a/tests/reflection/gh-55.glsl.expected b/tests/reflection/gh-55.glsl.expected
new file mode 100644
index 000000000..8cdebdcd8
--- /dev/null
+++ b/tests/reflection/gh-55.glsl.expected
@@ -0,0 +1,45 @@
+result code = 0
+standard error = {
+}
+standard output = {
+{
+ "parameters": [
+ {
+ "name": "PerFrameCB",
+ "binding": {"kind": "descriptorTableSlot", "index": 0},
+ "type": {
+ "kind": "constantBuffer",
+ "elementType": {
+ "kind": "struct",
+ "fields": [
+ {
+ "name": "offset",
+ "type": {
+ "kind": "vector",
+ "elementCount": 2,
+ "elementType": {
+ "kind": "scalar",
+ "scalarType": "float32"
+ }
+ },
+ "binding": {"kind": "uniform", "offset": 0, "size": 8}
+ },
+ {
+ "name": "scale",
+ "type": {
+ "kind": "vector",
+ "elementCount": 2,
+ "elementType": {
+ "kind": "scalar",
+ "scalarType": "float32"
+ }
+ },
+ "binding": {"kind": "uniform", "offset": 8, "size": 8}
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
+}