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 KiB78 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7        {
8            "name": "u",
9            "binding": {"kind": "uniform", "offset": 0, "size": 16},
10            "type": {
11                "kind": "vector",
12                "elementCount": 4,
13                "elementType": {
14                    "kind": "scalar",
15                    "scalarType": "float32"
16                }
17            }
18        },
19        {
20            "name": "t",
21            "binding": {"kind": "shaderResource", "index": 0},
22            "type": {
23                "kind": "resource",
24                "baseShape": "texture2D"
25            }
26        },
27        {
28            "name": "s",
29            "binding": {"kind": "samplerState", "index": 0},
30            "type": {
31                "kind": "samplerState"
32            }
33        },
34        {
35            "name": "CB",
36            "binding": {"kind": "constantBuffer", "index": 1},
37            "type": {
38                "kind": "constantBuffer",
39                "elementType": {
40                    "kind": "struct",
41                    "fields": [
42                        {
43                            "name": "v",
44                            "type": {
45                                "kind": "vector",
46                                "elementCount": 4,
47                                "elementType": {
48                                    "kind": "scalar",
49                                    "scalarType": "float32"
50                                }
51                            },
52                            "binding": {"kind": "uniform", "offset": 0, "size": 16}
53                        }
54                    ]
55                }
56            }
57        },
58        {
59            "name": "w",
60            "binding": {"kind": "uniform", "offset": 16, "size": 16},
61            "type": {
62                "kind": "vector",
63                "elementCount": 4,
64                "elementType": {
65                    "kind": "scalar",
66                    "scalarType": "float32"
67                }
68            }
69        }
70    ],
71    "entryPoints": [
72        {
73            "name": "main",
74            "stage": "fragment"
75        }
76    ]
77}
78}