yum-mirror/slang

Making it easier to work with shaders

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

DevonAdd inner texture type to reflection json (#6416)cd20e94af

master
1.1 KiB44 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7        {
8            "name": "tx",
9            "binding": {"kind": "shaderResource", "space": 2, "index": 1},
10            "type": {
11                "kind": "resource",
12                "baseShape": "texture2D",
13                "resultType": {
14                    "kind": "vector",
15                    "elementCount": 4,
16                    "elementType": {
17                        "kind": "scalar",
18                        "scalarType": "float32"
19                    }
20                }
21            }
22        }
23    ],
24    "entryPoints": [
25        {
26            "name": "main",
27            "stage": "fragment",
28            "result": {
29                "stage": "fragment",
30                "binding": {"kind": "varyingOutput", "index": 0},
31                "semanticName": "SV_TARGET",
32                "type": {
33                    "kind": "vector",
34                    "elementCount": 4,
35                    "elementType": {
36                        "kind": "scalar",
37                        "scalarType": "float32"
38                    }
39                }
40            }
41        }
42    ]
43}
44}