yum-mirror/slang

Making it easier to work with shaders

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

CopilotAdd combined texture-sampler flag to reflection API to differentiate Texture2D from Sampler2D (#7901)c5091f0ae

master
1.9 KiB68 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7        {
8            "name": "t0",
9            "binding": {"kind": "descriptorTableSlot", "index": 0},
10            "type": {
11                "kind": "resource",
12                "baseShape": "texture2D",
13                "combined": true,
14                "resultType": {
15                    "kind": "scalar",
16                    "scalarType": "float32"
17                }
18            }
19        },
20        {
21            "name": "t1",
22            "binding": {"kind": "descriptorTableSlot", "index": 1},
23            "type": {
24                "kind": "resource",
25                "baseShape": "texture2D",
26                "combined": true,
27                "resultType": {
28                    "kind": "vector",
29                    "elementCount": 4,
30                    "elementType": {
31                        "kind": "scalar",
32                        "scalarType": "float32"
33                    }
34                }
35            }
36        }
37    ],
38    "entryPoints": [
39        {
40            "name": "main",
41            "stage": "fragment",
42            "result": {
43                "stage": "fragment",
44                "binding": {"kind": "varyingOutput", "index": 0},
45                "semanticName": "SV_TARGET",
46                "type": {
47                    "kind": "vector",
48                    "elementCount": 4,
49                    "elementType": {
50                        "kind": "scalar",
51                        "scalarType": "float32"
52                    }
53                }
54            },
55            "bindings": [
56                {
57                    "name": "t0",
58                    "binding": {"kind": "descriptorTableSlot", "index": 0, "used": 0}
59                },
60                {
61                    "name": "t1",
62                    "binding": {"kind": "descriptorTableSlot", "index": 1, "used": 0}
63                }
64            ]
65        }
66    ]
67}
68}