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.6 KiB51 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7        {
8            "name": "PerFrameCB",
9            "binding": {"kind": "descriptorTableSlot", "index": 0},
10            "type": {
11                "kind": "constantBuffer",
12                "elementType": {
13                    "kind": "struct",
14                    "fields": [
15                        {
16                            "name": "offset",
17                            "type": {
18                                "kind": "vector",
19                                "elementCount": 2,
20                                "elementType": {
21                                    "kind": "scalar",
22                                    "scalarType": "float32"
23                                }
24                            },
25                            "binding": {"kind": "uniform", "offset": 0, "size": 8}
26                        },
27                        {
28                            "name": "scale",
29                            "type": {
30                                "kind": "vector",
31                                "elementCount": 2,
32                                "elementType": {
33                                    "kind": "scalar",
34                                    "scalarType": "float32"
35                                }
36                            },
37                            "binding": {"kind": "uniform", "offset": 8, "size": 8}
38                        }
39                    ]
40                }
41            }
42        }
43    ],
44    "entryPoints": [
45        {
46            "name": "main",
47            "stage": "fragment"
48        }
49    ]
50}
51}