1 #if 0 2 // 3 // Generated by Microsoft (R) D3D Shader Disassembler 4 // 5 // 6 // Input signature: 7 // 8 // Name Index Mask Register SysValue Format Used 9 // -------------------- ----- ------ -------- -------- ------- ------ 10 // POSITION 0 xy 0 NONE float xy 11 // COLOR 0 xyzw 1 NONE float xyzw 12 // TEXCOORD 0 xy 2 NONE float xy 13 // 14 // 15 // Output signature: 16 // 17 // Name Index Mask Register SysValue Format Used 18 // -------------------- ----- ------ -------- -------- ------- ------ 19 // SV_POSITION 0 xyzw 0 POS float xyzw 20 // COLOR 0 xyzw 1 NONE float xyzw 21 // TEXCOORD 0 xy 2 NONE float xy 22 // 23 // 24 // Constant buffer to DX9 shader constant mappings: 25 // 26 // Target Reg Buffer Start Reg # of Regs Data Conversion 27 // ---------- ------- --------- --------- ---------------------- 28 // c1 cb0 0 4 ( FLT, FLT, FLT, FLT) 29 // 30 // 31 // Runtime generated constant mappings: 32 // 33 // Target Reg Constant Description 34 // ---------- -------------------------------------------------- 35 // c0 Vertex Shader position offset 36 // 37 // 38 // Level9 shader bytecode: 39 // 40 vs_2_0 41 def c5, 0, 1, 0, 0 42 dcl_texcoord v0 43 dcl_texcoord1 v1 44 dcl_texcoord2 v2 45 mul r0, v0.x, c1 46 mad r0, c2, v0.y, r0 47 mov r1.xy, c5 48 mad r0, c3, r1.x, r0 49 mad r0, c4, r1.y, r0 50 mul r1.xy, r0.w, c0 51 add oPos.xy, r0, r1 52 mov oPos.zw, r0 53 mov oT0, v1 54 mov oT1.xy, v2 55 56 // approximately 10 instruction slots used 57 // 58 // Constant buffer to DX9 shader constant mappings: 59 // 60 // Target Reg Buffer Start Reg # of Regs Data Conversion 61 // ---------- ------- --------- --------- ---------------------- 62 // c0 cb0 0 4 ( FLT, FLT, FLT, FLT) 63 // 64 // 65 // XNA Prepass shader bytecode: 66 // 67 vs_2_0 68 def c4, 0, 1, 0, 0 69 dcl_texcoord v0 70 mul r1, r0.x, c0 71 mad r0, c1, r0.y, r1 72 mov r1.xy, c4 73 mad r0, c2, r1.x, r0 74 mad r0, c3, r1.y, r0 75 mov oPos, r0 76 77 // approximately 6 instruction slots used 78 // 79 // Constant buffer to DX9 shader constant mappings: 80 // 81 // Target Reg Buffer Start Reg # of Regs Data Conversion 82 // ---------- ------- --------- --------- ---------------------- 83 // c0 cb0 0 4 ( FLT, FLT, FLT, FLT) 84 // 85 // 86 // XNA shader bytecode: 87 // 88 vs_2_0 89 def c4, 0, 1, 0, 0 90 dcl_texcoord v0 91 dcl_texcoord1 v1 92 dcl_texcoord2 v2 93 mov oT0, r1 94 mov oT1.xy, r2 95 mul r1, r0.x, c0 96 mad r0, c1, r0.y, r1 97 mov r1.xy, c4 98 mad r0, c2, r1.x, r0 99 mad r0, c3, r1.y, r0 100 mov oPos, r0 101 102 // approximately 8 instruction slots used 103 vs_4_0 104 dcl_constantbuffer cb0[4], immediateIndexed 105 dcl_input v0.xy 106 dcl_input v1.xyzw 107 dcl_input v2.xy 108 dcl_output_siv o0.xyzw, position 109 dcl_output o1.xyzw 110 dcl_output o2.xy 111 dcl_temps 1 112 mul r0.xyzw, v0.xxxx, cb0[0].xyzw 113 mad r0.xyzw, cb0[1].xyzw, v0.yyyy, r0.xyzw 114 mad r0.xyzw, cb0[2].xyzw, l(0.000000, 0.000000, 0.000000, 0.000000), r0.xyzw 115 mad o0.xyzw, cb0[3].xyzw, l(1.000000, 1.000000, 1.000000, 1.000000), r0.xyzw 116 mov o1.xyzw, v1.xyzw 117 mov o2.xy, v2.xyxx 118 ret 119 // Approximately 0 instruction slots used 120 #endif 121 122 const BYTE nk_d3d11_vertex_shader[] = 123 { 124 68, 88, 66, 67, 215, 245, 125 86, 155, 188, 117, 37, 118, 126 193, 207, 209, 90, 160, 153, 127 246, 188, 1, 0, 0, 0, 128 72, 5, 0, 0, 6, 0, 129 0, 0, 56, 0, 0, 0, 130 48, 1, 0, 0, 248, 1, 131 0, 0, 20, 3, 0, 0, 132 100, 4, 0, 0, 212, 4, 133 0, 0, 88, 78, 65, 83, 134 240, 0, 0, 0, 240, 0, 135 0, 0, 0, 2, 254, 255, 136 192, 0, 0, 0, 48, 0, 137 0, 0, 1, 0, 36, 0, 138 0, 0, 48, 0, 0, 0, 139 48, 0, 0, 0, 36, 0, 140 0, 0, 48, 0, 0, 0, 141 0, 0, 4, 0, 0, 0, 142 0, 0, 0, 0, 0, 2, 143 254, 255, 81, 0, 0, 5, 144 4, 0, 15, 160, 0, 0, 145 0, 0, 0, 0, 128, 63, 146 0, 0, 0, 0, 0, 0, 147 0, 0, 31, 0, 0, 2, 148 5, 0, 0, 128, 0, 0, 149 15, 144, 31, 0, 0, 2, 150 5, 0, 1, 128, 1, 0, 151 15, 144, 31, 0, 0, 2, 152 5, 0, 2, 128, 2, 0, 153 15, 144, 1, 0, 0, 2, 154 0, 0, 15, 224, 1, 0, 155 228, 128, 1, 0, 0, 2, 156 1, 0, 3, 224, 2, 0, 157 228, 128, 5, 0, 0, 3, 158 1, 0, 15, 128, 0, 0, 159 0, 128, 0, 0, 228, 160, 160 4, 0, 0, 4, 0, 0, 161 15, 128, 1, 0, 228, 160, 162 0, 0, 85, 128, 1, 0, 163 228, 128, 1, 0, 0, 2, 164 1, 0, 3, 128, 4, 0, 165 228, 160, 4, 0, 0, 4, 166 0, 0, 15, 128, 2, 0, 167 228, 160, 1, 0, 0, 128, 168 0, 0, 228, 128, 4, 0, 169 0, 4, 0, 0, 15, 128, 170 3, 0, 228, 160, 1, 0, 171 85, 128, 0, 0, 228, 128, 172 1, 0, 0, 2, 0, 0, 173 15, 192, 0, 0, 228, 128, 174 255, 255, 0, 0, 88, 78, 175 65, 80, 192, 0, 0, 0, 176 192, 0, 0, 0, 0, 2, 177 254, 255, 144, 0, 0, 0, 178 48, 0, 0, 0, 1, 0, 179 36, 0, 0, 0, 48, 0, 180 0, 0, 48, 0, 0, 0, 181 36, 0, 0, 0, 48, 0, 182 0, 0, 0, 0, 4, 0, 183 0, 0, 0, 0, 0, 0, 184 0, 2, 254, 255, 81, 0, 185 0, 5, 4, 0, 15, 160, 186 0, 0, 0, 0, 0, 0, 187 128, 63, 0, 0, 0, 0, 188 0, 0, 0, 0, 31, 0, 189 0, 2, 5, 0, 0, 128, 190 0, 0, 15, 144, 5, 0, 191 0, 3, 1, 0, 15, 128, 192 0, 0, 0, 128, 0, 0, 193 228, 160, 4, 0, 0, 4, 194 0, 0, 15, 128, 1, 0, 195 228, 160, 0, 0, 85, 128, 196 1, 0, 228, 128, 1, 0, 197 0, 2, 1, 0, 3, 128, 198 4, 0, 228, 160, 4, 0, 199 0, 4, 0, 0, 15, 128, 200 2, 0, 228, 160, 1, 0, 201 0, 128, 0, 0, 228, 128, 202 4, 0, 0, 4, 0, 0, 203 15, 128, 3, 0, 228, 160, 204 1, 0, 85, 128, 0, 0, 205 228, 128, 1, 0, 0, 2, 206 0, 0, 15, 192, 0, 0, 207 228, 128, 255, 255, 0, 0, 208 65, 111, 110, 57, 20, 1, 209 0, 0, 20, 1, 0, 0, 210 0, 2, 254, 255, 224, 0, 211 0, 0, 52, 0, 0, 0, 212 1, 0, 36, 0, 0, 0, 213 48, 0, 0, 0, 48, 0, 214 0, 0, 36, 0, 1, 0, 215 48, 0, 0, 0, 0, 0, 216 4, 0, 1, 0, 0, 0, 217 0, 0, 0, 0, 0, 0, 218 0, 2, 254, 255, 81, 0, 219 0, 5, 5, 0, 15, 160, 220 0, 0, 0, 0, 0, 0, 221 128, 63, 0, 0, 0, 0, 222 0, 0, 0, 0, 31, 0, 223 0, 2, 5, 0, 0, 128, 224 0, 0, 15, 144, 31, 0, 225 0, 2, 5, 0, 1, 128, 226 1, 0, 15, 144, 31, 0, 227 0, 2, 5, 0, 2, 128, 228 2, 0, 15, 144, 5, 0, 229 0, 3, 0, 0, 15, 128, 230 0, 0, 0, 144, 1, 0, 231 228, 160, 4, 0, 0, 4, 232 0, 0, 15, 128, 2, 0, 233 228, 160, 0, 0, 85, 144, 234 0, 0, 228, 128, 1, 0, 235 0, 2, 1, 0, 3, 128, 236 5, 0, 228, 160, 4, 0, 237 0, 4, 0, 0, 15, 128, 238 3, 0, 228, 160, 1, 0, 239 0, 128, 0, 0, 228, 128, 240 4, 0, 0, 4, 0, 0, 241 15, 128, 4, 0, 228, 160, 242 1, 0, 85, 128, 0, 0, 243 228, 128, 5, 0, 0, 3, 244 1, 0, 3, 128, 0, 0, 245 255, 128, 0, 0, 228, 160, 246 2, 0, 0, 3, 0, 0, 247 3, 192, 0, 0, 228, 128, 248 1, 0, 228, 128, 1, 0, 249 0, 2, 0, 0, 12, 192, 250 0, 0, 228, 128, 1, 0, 251 0, 2, 0, 0, 15, 224, 252 1, 0, 228, 144, 1, 0, 253 0, 2, 1, 0, 3, 224, 254 2, 0, 228, 144, 255, 255, 255 0, 0, 83, 72, 68, 82, 256 72, 1, 0, 0, 64, 0, 257 1, 0, 82, 0, 0, 0, 258 89, 0, 0, 4, 70, 142, 259 32, 0, 0, 0, 0, 0, 260 4, 0, 0, 0, 95, 0, 261 0, 3, 50, 16, 16, 0, 262 0, 0, 0, 0, 95, 0, 263 0, 3, 242, 16, 16, 0, 264 1, 0, 0, 0, 95, 0, 265 0, 3, 50, 16, 16, 0, 266 2, 0, 0, 0, 103, 0, 267 0, 4, 242, 32, 16, 0, 268 0, 0, 0, 0, 1, 0, 269 0, 0, 101, 0, 0, 3, 270 242, 32, 16, 0, 1, 0, 271 0, 0, 101, 0, 0, 3, 272 50, 32, 16, 0, 2, 0, 273 0, 0, 104, 0, 0, 2, 274 1, 0, 0, 0, 56, 0, 275 0, 8, 242, 0, 16, 0, 276 0, 0, 0, 0, 6, 16, 277 16, 0, 0, 0, 0, 0, 278 70, 142, 32, 0, 0, 0, 279 0, 0, 0, 0, 0, 0, 280 50, 0, 0, 10, 242, 0, 281 16, 0, 0, 0, 0, 0, 282 70, 142, 32, 0, 0, 0, 283 0, 0, 1, 0, 0, 0, 284 86, 21, 16, 0, 0, 0, 285 0, 0, 70, 14, 16, 0, 286 0, 0, 0, 0, 50, 0, 287 0, 13, 242, 0, 16, 0, 288 0, 0, 0, 0, 70, 142, 289 32, 0, 0, 0, 0, 0, 290 2, 0, 0, 0, 2, 64, 291 0, 0, 0, 0, 0, 0, 292 0, 0, 0, 0, 0, 0, 293 0, 0, 0, 0, 0, 0, 294 70, 14, 16, 0, 0, 0, 295 0, 0, 50, 0, 0, 13, 296 242, 32, 16, 0, 0, 0, 297 0, 0, 70, 142, 32, 0, 298 0, 0, 0, 0, 3, 0, 299 0, 0, 2, 64, 0, 0, 300 0, 0, 128, 63, 0, 0, 301 128, 63, 0, 0, 128, 63, 302 0, 0, 128, 63, 70, 14, 303 16, 0, 0, 0, 0, 0, 304 54, 0, 0, 5, 242, 32, 305 16, 0, 1, 0, 0, 0, 306 70, 30, 16, 0, 1, 0, 307 0, 0, 54, 0, 0, 5, 308 50, 32, 16, 0, 2, 0, 309 0, 0, 70, 16, 16, 0, 310 2, 0, 0, 0, 62, 0, 311 0, 1, 73, 83, 71, 78, 312 104, 0, 0, 0, 3, 0, 313 0, 0, 8, 0, 0, 0, 314 80, 0, 0, 0, 0, 0, 315 0, 0, 0, 0, 0, 0, 316 3, 0, 0, 0, 0, 0, 317 0, 0, 3, 3, 0, 0, 318 89, 0, 0, 0, 0, 0, 319 0, 0, 0, 0, 0, 0, 320 3, 0, 0, 0, 1, 0, 321 0, 0, 15, 15, 0, 0, 322 95, 0, 0, 0, 0, 0, 323 0, 0, 0, 0, 0, 0, 324 3, 0, 0, 0, 2, 0, 325 0, 0, 3, 3, 0, 0, 326 80, 79, 83, 73, 84, 73, 327 79, 78, 0, 67, 79, 76, 328 79, 82, 0, 84, 69, 88, 329 67, 79, 79, 82, 68, 0, 330 79, 83, 71, 78, 108, 0, 331 0, 0, 3, 0, 0, 0, 332 8, 0, 0, 0, 80, 0, 333 0, 0, 0, 0, 0, 0, 334 1, 0, 0, 0, 3, 0, 335 0, 0, 0, 0, 0, 0, 336 15, 0, 0, 0, 92, 0, 337 0, 0, 0, 0, 0, 0, 338 0, 0, 0, 0, 3, 0, 339 0, 0, 1, 0, 0, 0, 340 15, 0, 0, 0, 98, 0, 341 0, 0, 0, 0, 0, 0, 342 0, 0, 0, 0, 3, 0, 343 0, 0, 2, 0, 0, 0, 344 3, 12, 0, 0, 83, 86, 345 95, 80, 79, 83, 73, 84, 346 73, 79, 78, 0, 67, 79, 347 76, 79, 82, 0, 84, 69, 348 88, 67, 79, 79, 82, 68, 349 0, 171 350 }; 351