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": "t", 9 "binding": {"kind": "shaderResource", "index": 5}, 10 "type": { 11 "kind": "resource", 12 "baseShape": "texture2D", 13 "resultType": { 14 "kind": "vector", 15 "elementCount": 4, 16 "elementType": { 17 "kind": "scalar", 18 "scalarType": "float32" 19 } 20 } 21 } 22 }, 23 { 24 "name": "s", 25 "binding": {"kind": "samplerState", "index": 1}, 26 "type": { 27 "kind": "samplerState" 28 } 29 }, 30 { 31 "name": "c", 32 "binding": {"kind": "constantBuffer", "index": 3}, 33 "type": { 34 "kind": "constantBuffer", 35 "elementType": { 36 "kind": "struct", 37 "name": "Data", 38 "fields": [ 39 { 40 "name": "a", 41 "type": { 42 "kind": "scalar", 43 "scalarType": "float32" 44 }, 45 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 46 }, 47 { 48 "name": "b", 49 "type": { 50 "kind": "scalar", 51 "scalarType": "int32" 52 }, 53 "binding": {"kind": "uniform", "offset": 4, "size": 4, "elementStride": 0} 54 } 55 ] 56 }, 57 "containerVarLayout": { 58 "binding": {"kind": "constantBuffer", "index": 0} 59 }, 60 "elementVarLayout": { 61 "type": { 62 "kind": "struct", 63 "name": "Data", 64 "fields": [ 65 { 66 "name": "a", 67 "type": { 68 "kind": "scalar", 69 "scalarType": "float32" 70 }, 71 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 72 }, 73 { 74 "name": "b", 75 "type": { 76 "kind": "scalar", 77 "scalarType": "int32" 78 }, 79 "binding": {"kind": "uniform", "offset": 4, "size": 4, "elementStride": 0} 80 } 81 ] 82 }, 83 "binding": {"kind": "uniform", "offset": 0, "size": 16, "elementStride": 0} 84 } 85 } 86 }, 87 { 88 "name": "t2", 89 "binding": {"kind": "shaderResource", "space": 2, "index": 7}, 90 "type": { 91 "kind": "resource", 92 "baseShape": "texture2D", 93 "resultType": { 94 "kind": "vector", 95 "elementCount": 4, 96 "elementType": { 97 "kind": "scalar", 98 "scalarType": "float32" 99 } 100 } 101 } 102 }, 103 { 104 "name": "u", 105 "binding": {"kind": "unorderedAccess", "index": 11}, 106 "type": { 107 "kind": "resource", 108 "baseShape": "structuredBuffer", 109 "access": "readWrite", 110 "resultType": { 111 "kind": "struct", 112 "name": "Data", 113 "fields": [ 114 { 115 "name": "a", 116 "type": { 117 "kind": "scalar", 118 "scalarType": "float32" 119 }, 120 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 121 }, 122 { 123 "name": "b", 124 "type": { 125 "kind": "scalar", 126 "scalarType": "int32" 127 }, 128 "binding": {"kind": "uniform", "offset": 4, "size": 4, "elementStride": 0} 129 } 130 ] 131 } 132 } 133 }, 134 { 135 "name": "u2", 136 "binding": {"kind": "unorderedAccess", "space": 2, "index": 4}, 137 "type": { 138 "kind": "resource", 139 "baseShape": "structuredBuffer", 140 "access": "readWrite", 141 "resultType": { 142 "kind": "scalar", 143 "scalarType": "int32" 144 } 145 } 146 } 147 ], 148 "entryPoints": [ 149 { 150 "name": "main", 151 "stage": "fragment", 152 "result": { 153 "stage": "fragment", 154 "binding": {"kind": "varyingOutput", "index": 0}, 155 "semanticName": "SV_TARGET", 156 "type": { 157 "kind": "vector", 158 "elementCount": 4, 159 "elementType": { 160 "kind": "scalar", 161 "scalarType": "float32" 162 } 163 } 164 }, 165 "bindings": [ 166 { 167 "name": "t", 168 "binding": {"kind": "shaderResource", "index": 5, "used": 0} 169 }, 170 { 171 "name": "s", 172 "binding": {"kind": "samplerState", "index": 1, "used": 0} 173 }, 174 { 175 "name": "c", 176 "binding": {"kind": "constantBuffer", "index": 3, "used": 1} 177 }, 178 { 179 "name": "t2", 180 "binding": {"kind": "shaderResource", "space": 2, "index": 7, "used": 0} 181 }, 182 { 183 "name": "u", 184 "binding": {"kind": "unorderedAccess", "index": 11, "used": 0} 185 }, 186 { 187 "name": "u2", 188 "binding": {"kind": "unorderedAccess", "space": 2, "index": 4, "used": 0} 189 } 190 ] 191 } 192 ] 193} 194}