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": "MyConstantBuffer", 9 "binding": {"kind": "constantBuffer", "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": 148, "elementStride": 16} 35 }, 36 { 37 "name": "y", 38 "type": { 39 "kind": "scalar", 40 "scalarType": "float32" 41 }, 42 "binding": {"kind": "uniform", "offset": 164, "size": 4, "elementStride": 0} 43 } 44 ] 45 }, 46 "containerVarLayout": { 47 "binding": {"kind": "constantBuffer", "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": 148, "elementStride": 16} 73 }, 74 { 75 "name": "y", 76 "type": { 77 "kind": "scalar", 78 "scalarType": "float32" 79 }, 80 "binding": {"kind": "uniform", "offset": 164, "size": 4, "elementStride": 0} 81 } 82 ] 83 }, 84 "binding": {"kind": "uniform", "offset": 0, "size": 168, "elementStride": 0} 85 } 86 } 87 }, 88 { 89 "name": "tx", 90 "binding": {"kind": "shaderResource", "index": 0}, 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": "shaderResource", "index": 1, "count": 16}, 107 "type": { 108 "kind": "array", 109 "elementCount": 16, 110 "elementType": { 111 "kind": "resource", 112 "baseShape": "texture2D", 113 "resultType": { 114 "kind": "vector", 115 "elementCount": 4, 116 "elementType": { 117 "kind": "scalar", 118 "scalarType": "float32" 119 } 120 } 121 } 122 } 123 }, 124 { 125 "name": "ty", 126 "binding": {"kind": "shaderResource", "index": 17}, 127 "type": { 128 "kind": "resource", 129 "baseShape": "texture2D", 130 "resultType": { 131 "kind": "vector", 132 "elementCount": 4, 133 "elementType": { 134 "kind": "scalar", 135 "scalarType": "float32" 136 } 137 } 138 } 139 }, 140 { 141 "name": "sx", 142 "binding": {"kind": "samplerState", "index": 0}, 143 "type": { 144 "kind": "samplerState" 145 } 146 }, 147 { 148 "name": "sa", 149 "binding": {"kind": "samplerState", "index": 1, "count": 4}, 150 "type": { 151 "kind": "array", 152 "elementCount": 4, 153 "elementType": { 154 "kind": "samplerState" 155 } 156 } 157 }, 158 { 159 "name": "sy", 160 "binding": {"kind": "samplerState", "index": 5}, 161 "type": { 162 "kind": "samplerState" 163 } 164 } 165 ], 166 "entryPoints": [ 167 { 168 "name": "main", 169 "stage": "fragment", 170 "result": { 171 "stage": "fragment", 172 "binding": {"kind": "varyingOutput", "index": 0}, 173 "semanticName": "SV_TARGET", 174 "type": { 175 "kind": "vector", 176 "elementCount": 4, 177 "elementType": { 178 "kind": "scalar", 179 "scalarType": "float32" 180 } 181 } 182 } 183 } 184 ] 185} 186}