yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
bdda8a90c
master
1result code = 0 2standard error = { 3} 4standard output = { 5{ 6 "parameters": [ 7 { 8 "name": "cb", 9 "binding": {"kind": "constantBuffer", "index": 0}, 10 "type": { 11 "kind": "constantBuffer", 12 "elementType": { 13 "kind": "struct", 14 "name": "S", 15 "fields": [ 16 { 17 "name": "z", 18 "type": { 19 "kind": "scalar", 20 "scalarType": "float32" 21 }, 22 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 23 }, 24 { 25 "name": "a", 26 "type": { 27 "kind": "struct", 28 "name": "A", 29 "fields": [ 30 { 31 "name": "x", 32 "type": { 33 "kind": "scalar", 34 "scalarType": "float32" 35 }, 36 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 37 }, 38 { 39 "name": "y", 40 "type": { 41 "kind": "scalar", 42 "scalarType": "float32" 43 }, 44 "binding": {"kind": "uniform", "offset": 4, "size": 4, "elementStride": 0} 45 } 46 ] 47 }, 48 "binding": {"kind": "uniform", "offset": 16, "size": 8, "elementStride": 0} 49 }, 50 { 51 "name": "b", 52 "type": { 53 "kind": "scalar", 54 "scalarType": "int32" 55 }, 56 "binding": {"kind": "uniform", "offset": 24, "size": 4, "elementStride": 0} 57 }, 58 { 59 "name": "c", 60 "type": { 61 "kind": "array", 62 "elementCount": 2, 63 "elementType": { 64 "kind": "vector", 65 "elementCount": 2, 66 "elementType": { 67 "kind": "scalar", 68 "scalarType": "float32" 69 } 70 }, 71 "uniformStride": 16 72 }, 73 "binding": {"kind": "uniform", "offset": 32, "size": 24, "elementStride": 16} 74 }, 75 { 76 "name": "d", 77 "type": { 78 "kind": "scalar", 79 "scalarType": "int32" 80 }, 81 "binding": {"kind": "uniform", "offset": 56, "size": 4, "elementStride": 0} 82 } 83 ] 84 }, 85 "containerVarLayout": { 86 "binding": {"kind": "constantBuffer", "index": 0} 87 }, 88 "elementVarLayout": { 89 "type": { 90 "kind": "struct", 91 "name": "S", 92 "fields": [ 93 { 94 "name": "z", 95 "type": { 96 "kind": "scalar", 97 "scalarType": "float32" 98 }, 99 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 100 }, 101 { 102 "name": "a", 103 "type": { 104 "kind": "struct", 105 "name": "A", 106 "fields": [ 107 { 108 "name": "x", 109 "type": { 110 "kind": "scalar", 111 "scalarType": "float32" 112 }, 113 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 114 }, 115 { 116 "name": "y", 117 "type": { 118 "kind": "scalar", 119 "scalarType": "float32" 120 }, 121 "binding": {"kind": "uniform", "offset": 4, "size": 4, "elementStride": 0} 122 } 123 ] 124 }, 125 "binding": {"kind": "uniform", "offset": 16, "size": 8, "elementStride": 0} 126 }, 127 { 128 "name": "b", 129 "type": { 130 "kind": "scalar", 131 "scalarType": "int32" 132 }, 133 "binding": {"kind": "uniform", "offset": 24, "size": 4, "elementStride": 0} 134 }, 135 { 136 "name": "c", 137 "type": { 138 "kind": "array", 139 "elementCount": 2, 140 "elementType": { 141 "kind": "vector", 142 "elementCount": 2, 143 "elementType": { 144 "kind": "scalar", 145 "scalarType": "float32" 146 } 147 }, 148 "uniformStride": 16 149 }, 150 "binding": {"kind": "uniform", "offset": 32, "size": 24, "elementStride": 16} 151 }, 152 { 153 "name": "d", 154 "type": { 155 "kind": "scalar", 156 "scalarType": "int32" 157 }, 158 "binding": {"kind": "uniform", "offset": 56, "size": 4, "elementStride": 0} 159 } 160 ] 161 }, 162 "binding": {"kind": "uniform", "offset": 0, "size": 60, "elementStride": 0} 163 } 164 } 165 }, 166 { 167 "name": "sb", 168 "binding": {"kind": "unorderedAccess", "index": 0}, 169 "type": { 170 "kind": "resource", 171 "baseShape": "structuredBuffer", 172 "access": "readWrite", 173 "resultType": { 174 "kind": "struct", 175 "name": "S", 176 "fields": [ 177 { 178 "name": "z", 179 "type": { 180 "kind": "scalar", 181 "scalarType": "float32" 182 }, 183 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 184 }, 185 { 186 "name": "a", 187 "type": { 188 "kind": "struct", 189 "name": "A", 190 "fields": [ 191 { 192 "name": "x", 193 "type": { 194 "kind": "scalar", 195 "scalarType": "float32" 196 }, 197 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 198 }, 199 { 200 "name": "y", 201 "type": { 202 "kind": "scalar", 203 "scalarType": "float32" 204 }, 205 "binding": {"kind": "uniform", "offset": 4, "size": 4, "elementStride": 0} 206 } 207 ] 208 }, 209 "binding": {"kind": "uniform", "offset": 4, "size": 8, "elementStride": 0} 210 }, 211 { 212 "name": "b", 213 "type": { 214 "kind": "scalar", 215 "scalarType": "int32" 216 }, 217 "binding": {"kind": "uniform", "offset": 12, "size": 4, "elementStride": 0} 218 }, 219 { 220 "name": "c", 221 "type": { 222 "kind": "array", 223 "elementCount": 2, 224 "elementType": { 225 "kind": "vector", 226 "elementCount": 2, 227 "elementType": { 228 "kind": "scalar", 229 "scalarType": "float32" 230 } 231 }, 232 "uniformStride": 8 233 }, 234 "binding": {"kind": "uniform", "offset": 16, "size": 16, "elementStride": 8} 235 }, 236 { 237 "name": "d", 238 "type": { 239 "kind": "scalar", 240 "scalarType": "int32" 241 }, 242 "binding": {"kind": "uniform", "offset": 32, "size": 4, "elementStride": 0} 243 } 244 ] 245 } 246 } 247 } 248 ], 249 "entryPoints": [ 250 { 251 "name": "main", 252 "stage": "compute", 253 "parameters": [ 254 { 255 "name": "dispatchThreadID", 256 "semanticName": "SV_DISPATCHTHREADID", 257 "type": { 258 "kind": "vector", 259 "elementCount": 3, 260 "elementType": { 261 "kind": "scalar", 262 "scalarType": "uint32" 263 } 264 } 265 } 266 ], 267 "threadGroupSize": [1, 1, 1] 268 } 269 ] 270} 271}