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
4.1 KiB115 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7        {
8            "name": "a",
9            "binding": {"kind": "subElementRegisterSpace", "index": 1},
10            "type": {
11                "kind": "parameterBlock",
12                "elementType": {
13                    "kind": "struct",
14                    "name": "Helper",
15                    "fields": [
16                        {
17                            "name": "t",
18                            "type": {
19                                "kind": "resource",
20                                "baseShape": "texture2D",
21                                "resultType": {
22                                    "kind": "vector",
23                                    "elementCount": 4,
24                                    "elementType": {
25                                        "kind": "scalar",
26                                        "scalarType": "float32"
27                                    }
28                                }
29                            },
30                            "binding": {"kind": "descriptorTableSlot", "index": 0}
31                        },
32                        {
33                            "name": "s",
34                            "type": {
35                                "kind": "samplerState"
36                            },
37                            "binding": {"kind": "descriptorTableSlot", "index": 1}
38                        }
39                    ]
40                },
41                "containerVarLayout": {
42                    "binding": {"kind": "subElementRegisterSpace", "index": 0}
43                },
44                "elementVarLayout": {
45                    "type": {
46                        "kind": "struct",
47                        "name": "Helper",
48                        "fields": [
49                            {
50                                "name": "t",
51                                "type": {
52                                    "kind": "resource",
53                                    "baseShape": "texture2D",
54                                    "resultType": {
55                                        "kind": "vector",
56                                        "elementCount": 4,
57                                        "elementType": {
58                                            "kind": "scalar",
59                                            "scalarType": "float32"
60                                        }
61                                    }
62                                },
63                                "binding": {"kind": "descriptorTableSlot", "index": 0}
64                            },
65                            {
66                                "name": "s",
67                                "type": {
68                                    "kind": "samplerState"
69                                },
70                                "binding": {"kind": "descriptorTableSlot", "index": 1}
71                            }
72                        ]
73                    },
74                    "binding": {"kind": "descriptorTableSlot", "index": 0, "count": 2}
75                }
76            }
77        },
78        {
79            "name": "b",
80            "binding": {"kind": "descriptorTableSlot", "index": 0},
81            "type": {
82                "kind": "resource",
83                "baseShape": "texture2D",
84                "resultType": {
85                    "kind": "vector",
86                    "elementCount": 4,
87                    "elementType": {
88                        "kind": "scalar",
89                        "scalarType": "float32"
90                    }
91                }
92            }
93        }
94    ],
95    "entryPoints": [
96        {
97            "name": "main",
98            "stage": "fragment",
99            "result": {
100                "stage": "fragment",
101                "binding": {"kind": "varyingOutput", "index": 0},
102                "semanticName": "SV_TARGET",
103                "type": {
104                    "kind": "vector",
105                    "elementCount": 4,
106                    "elementType": {
107                        "kind": "scalar",
108                        "scalarType": "float32"
109                    }
110                }
111            }
112        }
113    ]
114}
115}