summaryrefslogtreecommitdiffstats
path: root/tests/reflection/attribute.slang.expected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reflection/attribute.slang.expected')
-rw-r--r--tests/reflection/attribute.slang.expected118
1 files changed, 118 insertions, 0 deletions
diff --git a/tests/reflection/attribute.slang.expected b/tests/reflection/attribute.slang.expected
new file mode 100644
index 000000000..4348b898f
--- /dev/null
+++ b/tests/reflection/attribute.slang.expected
@@ -0,0 +1,118 @@
+result code = 0
+standard error = {
+}
+standard output = {
+{
+ "parameters": [
+ {
+ "name": "param",
+ "binding": {"kind": "constantBuffer", "index": 0},
+ "type": {
+ "kind": "parameterBlock",
+ "elementType": {
+ "kind": "struct",
+ "name": "A",
+ "fields": [
+ {
+ "name": "x",
+ "type": {
+ "kind": "scalar",
+ "scalarType": "float32"
+ },
+ "binding": {"kind": "uniform", "offset": 0, "size": 4}
+ },
+ {
+ "name": "y",
+ "type": {
+ "kind": "scalar",
+ "scalarType": "float32"
+ },
+ "binding": {"kind": "uniform", "offset": 4, "size": 4},
+ "userAttribs": [{
+ "name": "DefaultValue",
+ "arguments": [
+ 1
+ ]
+ }
+ ]
+ }
+ ],
+ "userAttribs": [{
+ "name": "MyStruct",
+ "arguments": [
+ 0,
+ 1.000000
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name": "param2",
+ "binding": {"kind": "constantBuffer", "index": 1},
+ "type": {
+ "kind": "parameterBlock",
+ "elementType": {
+ "kind": "struct",
+ "name": "B",
+ "fields": [
+ {
+ "name": "x",
+ "type": {
+ "kind": "scalar",
+ "scalarType": "float32"
+ },
+ "binding": {"kind": "uniform", "offset": 0, "size": 4}
+ },
+ {
+ "name": "z",
+ "type": {
+ "kind": "scalar",
+ "scalarType": "float32"
+ },
+ "binding": {"kind": "uniform", "offset": 4, "size": 4},
+ "userAttribs": [{
+ "name": "DefaultValue",
+ "arguments": [
+ 2
+ ]
+ }
+ ]
+ }
+ ],
+ "userAttribs": [{
+ "name": "MyStruct",
+ "arguments": [
+ 0,
+ 2.000000
+ ]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "entryPoints": [
+ {
+ "name": "main",
+ "stage:": "compute",
+ "parameters": [
+ {
+ "name": "dispatchThreadID",
+ "semanticName": "SV_DISPATCHTHREADID",
+ "type": {
+ "kind": "vector",
+ "elementCount": 3,
+ "elementType": {
+ "kind": "scalar",
+ "scalarType": "uint32"
+ }
+ }
+ }
+ ],
+ "threadGroupSize": [1, 1, 1]
+ }
+ ]
+}
+}