yum-mirror/slang

Making it easier to work with shaders

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

Harsh Aggarwal (NVIDIA)Fix 7441: CUDA boolean vector layout to use 1-byte elements (#7862)bdda8a90c

master
6.4 KiB182 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7        {
8            "name": "MyConstantBuffer",
9            "binding": {"kind": "descriptorTableSlot", "space": 1, "index": 0},
10            "type": {
11                "kind": "constantBuffer",
12                "elementType": {
13                    "kind": "struct",
14                    "fields": [
15                        {
16                            "name": "x",
17                            "type": {
18                                "kind": "scalar",
19                                "scalarType": "float32"
20                            },
21                            "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0}
22                        },
23                        {
24                            "name": "a",
25                            "type": {
26                                "kind": "array",
27                                "elementCount": 10,
28                                "elementType": {
29                                    "kind": "scalar",
30                                    "scalarType": "float32"
31                                },
32                                "uniformStride": 16
33                            },
34                            "binding": {"kind": "uniform", "offset": 16, "size": 160, "elementStride": 16}
35                        },
36                        {
37                            "name": "y",
38                            "type": {
39                                "kind": "scalar",
40                                "scalarType": "float32"
41                            },
42                            "binding": {"kind": "uniform", "offset": 176, "size": 4, "elementStride": 0}
43                        }
44                    ]
45                },
46                "containerVarLayout": {
47                    "binding": {"kind": "descriptorTableSlot", "index": 0}
48                },
49                "elementVarLayout": {
50                    "type": {
51                        "kind": "struct",
52                        "fields": [
53                            {
54                                "name": "x",
55                                "type": {
56                                    "kind": "scalar",
57                                    "scalarType": "float32"
58                                },
59                                "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0}
60                            },
61                            {
62                                "name": "a",
63                                "type": {
64                                    "kind": "array",
65                                    "elementCount": 10,
66                                    "elementType": {
67                                        "kind": "scalar",
68                                        "scalarType": "float32"
69                                    },
70                                    "uniformStride": 16
71                                },
72                                "binding": {"kind": "uniform", "offset": 16, "size": 160, "elementStride": 16}
73                            },
74                            {
75                                "name": "y",
76                                "type": {
77                                    "kind": "scalar",
78                                    "scalarType": "float32"
79                                },
80                                "binding": {"kind": "uniform", "offset": 176, "size": 4, "elementStride": 0}
81                            }
82                        ]
83                    },
84                    "binding": {"kind": "uniform", "offset": 0, "size": 192, "elementStride": 0}
85                }
86            }
87        },
88        {
89            "name": "tx",
90            "binding": {"kind": "descriptorTableSlot", "space": 2, "index": 1},
91            "type": {
92                "kind": "resource",
93                "baseShape": "texture2D",
94                "resultType": {
95                    "kind": "vector",
96                    "elementCount": 4,
97                    "elementType": {
98                        "kind": "scalar",
99                        "scalarType": "float32"
100                    }
101                }
102            }
103        },
104        {
105            "name": "ta",
106            "binding": {"kind": "descriptorTableSlot", "space": 3, "index": 2},
107            "type": {
108                "kind": "resource",
109                "baseShape": "texture2D",
110                "resultType": {
111                    "kind": "vector",
112                    "elementCount": 4,
113                    "elementType": {
114                        "kind": "scalar",
115                        "scalarType": "float32"
116                    }
117                }
118            }
119        },
120        {
121            "name": "ty",
122            "binding": {"kind": "descriptorTableSlot", "index": 0},
123            "type": {
124                "kind": "resource",
125                "baseShape": "texture2D",
126                "resultType": {
127                    "kind": "vector",
128                    "elementCount": 4,
129                    "elementType": {
130                        "kind": "scalar",
131                        "scalarType": "float32"
132                    }
133                }
134            }
135        },
136        {
137            "name": "sx",
138            "binding": {"kind": "descriptorTableSlot", "index": 1},
139            "type": {
140                "kind": "samplerState"
141            }
142        },
143        {
144            "name": "sa",
145            "binding": {"kind": "descriptorTableSlot", "index": 2},
146            "type": {
147                "kind": "array",
148                "elementCount": 4,
149                "elementType": {
150                    "kind": "samplerState"
151                }
152            }
153        },
154        {
155            "name": "sy",
156            "binding": {"kind": "descriptorTableSlot", "index": 3},
157            "type": {
158                "kind": "samplerState"
159            }
160        }
161    ],
162    "entryPoints": [
163        {
164            "name": "main",
165            "stage": "fragment",
166            "result": {
167                "stage": "fragment",
168                "binding": {"kind": "varyingOutput", "index": 0},
169                "semanticName": "SV_TARGET",
170                "type": {
171                    "kind": "vector",
172                    "elementCount": 4,
173                    "elementType": {
174                        "kind": "scalar",
175                        "scalarType": "float32"
176                    }
177                }
178            }
179        }
180    ]
181}
182}