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
2.1 KiB65 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7
8    ],
9    "entryPoints": [
10        {
11            "name": "main",
12            "stage": "fragment",
13            "parameters": [
14                {
15                    "name": "input",
16                    "stage": "fragment",
17                    "binding": {"kind": "varyingInput", "index": 0},
18                    "type": {
19                        "kind": "struct",
20                        "name": "PSInput",
21                        "fields": [
22                            {
23                                "name": "color",
24                                "type": {
25                                    "kind": "vector",
26                                    "elementCount": 4,
27                                    "elementType": {
28                                        "kind": "scalar",
29                                        "scalarType": "float32"
30                                    }
31                                },
32                                "stage": "fragment",
33                                "binding": {"kind": "varyingInput", "index": 0},
34                                "semanticName": "COLOR"
35                            },
36                            {
37                                "name": "sampleIndex",
38                                "type": {
39                                    "kind": "scalar",
40                                    "scalarType": "uint32"
41                                },
42                                "semanticName": "SV_SAMPLEINDEX"
43                            }
44                        ]
45                    }
46                }
47            ],
48            "usesAnySampleRateInput": true,
49            "result": {
50                "stage": "fragment",
51                "binding": {"kind": "varyingOutput", "index": 0},
52                "semanticName": "SV_TARGET",
53                "type": {
54                    "kind": "vector",
55                    "elementCount": 4,
56                    "elementType": {
57                        "kind": "scalar",
58                        "scalarType": "float32"
59                    }
60                }
61            }
62        }
63    ]
64}
65}