yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

StanFixed stage and result field names in json reflection (#5927)76fdeaa47

master
1.1 KiB43 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7        {
8            "name": "b",
9            "binding": {"kind": "unorderedAccess", "index": 0},
10            "type": {
11                "kind": "resource",
12                "baseShape": "structuredBuffer",
13                "access": "readWrite",
14                "resultType": {
15                    "kind": "scalar",
16                    "scalarType": "float32"
17                }
18            }
19        }
20    ],
21    "entryPoints": [
22        {
23            "name": "main",
24            "stage": "compute",
25            "parameters": [
26                {
27                    "name": "tid",
28                    "semanticName": "SV_DISPATCHTHREADID",
29                    "type": {
30                        "kind": "vector",
31                        "elementCount": 3,
32                        "elementType": {
33                            "kind": "scalar",
34                            "scalarType": "uint32"
35                        }
36                    }
37                }
38            ],
39            "threadGroupSize": [3, 5, 7]
40        }
41    ]
42}
43}