summaryrefslogtreecommitdiffstats
path: root/tests/reflection/ptr/ptr-global.slang.expected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reflection/ptr/ptr-global.slang.expected')
-rw-r--r--tests/reflection/ptr/ptr-global.slang.expected82
1 files changed, 82 insertions, 0 deletions
diff --git a/tests/reflection/ptr/ptr-global.slang.expected b/tests/reflection/ptr/ptr-global.slang.expected
new file mode 100644
index 000000000..bd57d6a4b
--- /dev/null
+++ b/tests/reflection/ptr/ptr-global.slang.expected
@@ -0,0 +1,82 @@
+result code = 0
+standard error = {
+}
+standard output = {
+{
+ "parameters": [
+ {
+ "name": "inputBuffer",
+ "binding": {"kind": "uniform", "offset": 0, "size": 16},
+ "type": {
+ "kind": "resource",
+ "baseShape": "structuredBuffer",
+ "access": "readWrite",
+ "resultType": {
+ "kind": "struct",
+ "name": "SomeStruct",
+ "fields": [
+ {
+ "name": "regularGlobal",
+ "type": {
+ "kind": "pointer",
+ "valueType": "int"
+ },
+ "binding": {"kind": "uniform", "offset": 0, "size": 8}
+ },
+ {
+ "name": "regularGlobal2",
+ "type": {
+ "kind": "pointer",
+ "valueType": "int"
+ },
+ "binding": {"kind": "uniform", "offset": 8, "size": 8}
+ },
+ {
+ "name": "regularGlobal3",
+ "type": {
+ "kind": "scalar",
+ "scalarType": "int32"
+ },
+ "binding": {"kind": "uniform", "offset": 16, "size": 4}
+ }
+ ]
+ }
+ }
+ },
+ {
+ "name": "outputBuffer",
+ "binding": {"kind": "uniform", "offset": 16, "size": 16},
+ "type": {
+ "kind": "resource",
+ "baseShape": "structuredBuffer",
+ "access": "readWrite",
+ "resultType": {
+ "kind": "scalar",
+ "scalarType": "int32"
+ }
+ }
+ }
+ ],
+ "entryPoints": [
+ {
+ "name": "computeMain",
+ "stage:": "compute",
+ "parameters": [
+ {
+ "name": "dispatchThreadID",
+ "semanticName": "SV_DISPATCHTHREADID",
+ "type": {
+ "kind": "vector",
+ "elementCount": 3,
+ "elementType": {
+ "kind": "scalar",
+ "scalarType": "uint32"
+ }
+ }
+ }
+ ],
+ "threadGroupSize": [4, 1, 1]
+ }
+ ]
+}
+}