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": "a", 9 "binding": {"kind": "subElementRegisterSpace", "index": 0}, 10 "type": { 11 "kind": "parameterBlock", 12 "elementType": { 13 "kind": "struct", 14 "name": "A", 15 "fields": [ 16 { 17 "name": "x", 18 "type": { 19 "kind": "scalar", 20 "scalarType": "float32" 21 }, 22 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 23 } 24 ] 25 }, 26 "containerVarLayout": { 27 "bindings": [ 28 {"kind": "constantBuffer", "index": 0}, 29 {"kind": "subElementRegisterSpace", "index": 0} 30 ] 31 }, 32 "elementVarLayout": { 33 "type": { 34 "kind": "struct", 35 "name": "A", 36 "fields": [ 37 { 38 "name": "x", 39 "type": { 40 "kind": "scalar", 41 "scalarType": "float32" 42 }, 43 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 44 } 45 ] 46 }, 47 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 48 } 49 } 50 }, 51 { 52 "name": "b", 53 "binding": {"kind": "subElementRegisterSpace", "index": 1}, 54 "type": { 55 "kind": "parameterBlock", 56 "elementType": { 57 "kind": "struct", 58 "name": "B", 59 "fields": [ 60 { 61 "name": "y", 62 "type": { 63 "kind": "scalar", 64 "scalarType": "float32" 65 }, 66 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 67 } 68 ] 69 }, 70 "containerVarLayout": { 71 "bindings": [ 72 {"kind": "constantBuffer", "index": 0}, 73 {"kind": "subElementRegisterSpace", "index": 0} 74 ] 75 }, 76 "elementVarLayout": { 77 "type": { 78 "kind": "struct", 79 "name": "B", 80 "fields": [ 81 { 82 "name": "y", 83 "type": { 84 "kind": "scalar", 85 "scalarType": "float32" 86 }, 87 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 88 } 89 ] 90 }, 91 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 92 } 93 } 94 }, 95 { 96 "name": "c", 97 "binding": {"kind": "subElementRegisterSpace", "index": 2}, 98 "type": { 99 "kind": "parameterBlock", 100 "elementType": { 101 "kind": "struct", 102 "name": "C", 103 "fields": [ 104 { 105 "name": "z", 106 "type": { 107 "kind": "scalar", 108 "scalarType": "float32" 109 }, 110 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 111 } 112 ] 113 }, 114 "containerVarLayout": { 115 "bindings": [ 116 {"kind": "constantBuffer", "index": 0}, 117 {"kind": "subElementRegisterSpace", "index": 0} 118 ] 119 }, 120 "elementVarLayout": { 121 "type": { 122 "kind": "struct", 123 "name": "C", 124 "fields": [ 125 { 126 "name": "z", 127 "type": { 128 "kind": "scalar", 129 "scalarType": "float32" 130 }, 131 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 132 } 133 ] 134 }, 135 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 136 } 137 } 138 } 139 ], 140 "entryPoints": [ 141 { 142 "name": "main", 143 "stage": "compute", 144 "threadGroupSize": [1, 1, 1] 145 } 146 ] 147} 148}