1 #if 0 2 // 3 // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111 4 // 5 // 6 // fxc /nologo /E VS_BufferToTexture /T vs_4_0 /Fh 7 // compiled/buffertotexture11_vs.h BufferToTexture11.hlsl 8 // 9 // 10 // Buffer Definitions: 11 // 12 // cbuffer BufferCopyParams 13 // { 14 // 15 // uint FirstPixelOffset; // Offset: 0 Size: 4 16 // uint PixelsPerRow; // Offset: 4 Size: 4 17 // uint RowStride; // Offset: 8 Size: 4 18 // uint RowsPerSlice; // Offset: 12 Size: 4 19 // float2 PositionOffset; // Offset: 16 Size: 8 20 // float2 PositionScale; // Offset: 24 Size: 8 21 // int2 TexLocationOffset; // Offset: 32 Size: 8 [unused] 22 // int2 TexLocationScale; // Offset: 40 Size: 8 [unused] 23 // uint FirstSlice; // Offset: 48 Size: 4 24 // 25 // } 26 // 27 // 28 // Resource Bindings: 29 // 30 // Name Type Format Dim Slot Elements 31 // ------------------------------ ---------- ------- ----------- ---- -------- 32 // BufferCopyParams cbuffer NA NA 0 1 33 // 34 // 35 // 36 // Input signature: 37 // 38 // Name Index Mask Register SysValue Format Used 39 // -------------------- ----- ------ -------- -------- ------ ------ 40 // SV_VertexID 0 x 0 VERTID uint x 41 // 42 // 43 // Output signature: 44 // 45 // Name Index Mask Register SysValue Format Used 46 // -------------------- ----- ------ -------- -------- ------ ------ 47 // SV_Position 0 xyzw 0 POS float xyzw 48 // TEXCOORD 0 x 1 NONE uint x 49 // LAYER 0 y 1 NONE uint y 50 // 51 vs_4_0 52 dcl_constantbuffer cb0[4], immediateIndexed 53 dcl_input_sgv v0.x, vertex_id 54 dcl_output_siv o0.xyzw, position 55 dcl_output o1.x 56 dcl_output o1.y 57 dcl_temps 2 58 mov o0.zw, l(0,0,0,1.000000) 59 imul null, r0.xy, cb0[0].yzyy, cb0[0].wwww 60 udiv r0.z, null, v0.x, r0.x 61 imad r0.x, -r0.z, r0.x, v0.x 62 imad r0.y, r0.z, r0.y, cb0[0].x 63 iadd o1.y, cb0[3].x, r0.z 64 udiv r0.z, null, r0.x, cb0[0].y 65 imad r0.x, -r0.z, cb0[0].y, r0.x 66 utof r1.xy, r0.xzxx 67 imad r0.y, r0.z, cb0[0].z, r0.y 68 iadd o1.x, r0.y, r0.x 69 mad o0.xy, cb0[1].zwzz, r1.xyxx, cb0[1].xyxx 70 ret 71 // Approximately 13 instruction slots used 72 #endif 73 74 const BYTE g_VS_BufferToTexture[] = { 75 68, 88, 66, 67, 118, 65, 244, 232, 116, 137, 175, 126, 82, 230, 140, 17, 178, 249, 223, 76 31, 1, 0, 0, 0, 152, 5, 0, 0, 5, 0, 0, 0, 52, 0, 0, 0, 100, 2, 77 0, 0, 152, 2, 0, 0, 12, 3, 0, 0, 28, 5, 0, 0, 82, 68, 69, 70, 40, 78 2, 0, 0, 1, 0, 0, 0, 80, 0, 0, 0, 1, 0, 0, 0, 28, 0, 0, 0, 79 0, 4, 254, 255, 0, 1, 0, 0, 244, 1, 0, 0, 60, 0, 0, 0, 0, 0, 0, 80 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 81 0, 0, 1, 0, 0, 0, 66, 117, 102, 102, 101, 114, 67, 111, 112, 121, 80, 97, 114, 82 97, 109, 115, 0, 171, 171, 171, 60, 0, 0, 0, 9, 0, 0, 0, 104, 0, 0, 0, 83 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 84 0, 4, 0, 0, 0, 2, 0, 0, 0, 84, 1, 0, 0, 0, 0, 0, 0, 100, 1, 85 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 84, 1, 0, 0, 0, 86 0, 0, 0, 113, 1, 0, 0, 8, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 87 84, 1, 0, 0, 0, 0, 0, 0, 123, 1, 0, 0, 12, 0, 0, 0, 4, 0, 0, 88 0, 2, 0, 0, 0, 84, 1, 0, 0, 0, 0, 0, 0, 136, 1, 0, 0, 16, 0, 89 0, 0, 8, 0, 0, 0, 2, 0, 0, 0, 152, 1, 0, 0, 0, 0, 0, 0, 168, 90 1, 0, 0, 24, 0, 0, 0, 8, 0, 0, 0, 2, 0, 0, 0, 152, 1, 0, 0, 91 0, 0, 0, 0, 182, 1, 0, 0, 32, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 92 0, 200, 1, 0, 0, 0, 0, 0, 0, 216, 1, 0, 0, 40, 0, 0, 0, 8, 0, 93 0, 0, 0, 0, 0, 0, 200, 1, 0, 0, 0, 0, 0, 0, 233, 1, 0, 0, 48, 94 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 84, 1, 0, 0, 0, 0, 0, 0, 95 70, 105, 114, 115, 116, 80, 105, 120, 101, 108, 79, 102, 102, 115, 101, 116, 0, 171, 171, 96 171, 0, 0, 19, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 105, 97 120, 101, 108, 115, 80, 101, 114, 82, 111, 119, 0, 82, 111, 119, 83, 116, 114, 105, 100, 98 101, 0, 82, 111, 119, 115, 80, 101, 114, 83, 108, 105, 99, 101, 0, 80, 111, 115, 105, 99 116, 105, 111, 110, 79, 102, 102, 115, 101, 116, 0, 171, 1, 0, 3, 0, 1, 0, 2, 100 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 111, 115, 105, 116, 105, 111, 110, 83, 99, 101 97, 108, 101, 0, 84, 101, 120, 76, 111, 99, 97, 116, 105, 111, 110, 79, 102, 102, 115, 102 101, 116, 0, 1, 0, 2, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103 84, 101, 120, 76, 111, 99, 97, 116, 105, 111, 110, 83, 99, 97, 108, 101, 0, 70, 105, 104 114, 115, 116, 83, 108, 105, 99, 101, 0, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 105 40, 82, 41, 32, 72, 76, 83, 76, 32, 83, 104, 97, 100, 101, 114, 32, 67, 111, 109, 106 112, 105, 108, 101, 114, 32, 57, 46, 50, 57, 46, 57, 53, 50, 46, 51, 49, 49, 49, 107 0, 171, 171, 171, 73, 83, 71, 78, 44, 0, 0, 0, 1, 0, 0, 0, 8, 0, 0, 108 0, 32, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 109 0, 0, 1, 1, 0, 0, 83, 86, 95, 86, 101, 114, 116, 101, 120, 73, 68, 0, 79, 110 83, 71, 78, 108, 0, 0, 0, 3, 0, 0, 0, 8, 0, 0, 0, 80, 0, 0, 0, 111 0, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 112 0, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 113 0, 0, 1, 14, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 114 0, 0, 0, 1, 0, 0, 0, 2, 13, 0, 0, 83, 86, 95, 80, 111, 115, 105, 116, 115 105, 111, 110, 0, 84, 69, 88, 67, 79, 79, 82, 68, 0, 76, 65, 89, 69, 82, 0, 116 171, 83, 72, 68, 82, 8, 2, 0, 0, 64, 0, 1, 0, 130, 0, 0, 0, 89, 0, 117 0, 4, 70, 142, 32, 0, 0, 0, 0, 0, 4, 0, 0, 0, 96, 0, 0, 4, 18, 118 16, 16, 0, 0, 0, 0, 0, 6, 0, 0, 0, 103, 0, 0, 4, 242, 32, 16, 0, 119 0, 0, 0, 0, 1, 0, 0, 0, 101, 0, 0, 3, 18, 32, 16, 0, 1, 0, 0, 120 0, 101, 0, 0, 3, 34, 32, 16, 0, 1, 0, 0, 0, 104, 0, 0, 2, 2, 0, 121 0, 0, 54, 0, 0, 8, 194, 32, 16, 0, 0, 0, 0, 0, 2, 64, 0, 0, 0, 122 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 63, 38, 0, 0, 10, 123 0, 208, 0, 0, 50, 0, 16, 0, 0, 0, 0, 0, 150, 133, 32, 0, 0, 0, 0, 124 0, 0, 0, 0, 0, 246, 143, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 78, 0, 125 0, 8, 66, 0, 16, 0, 0, 0, 0, 0, 0, 208, 0, 0, 10, 16, 16, 0, 0, 126 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 35, 0, 0, 10, 18, 0, 16, 0, 127 0, 0, 0, 0, 42, 0, 16, 128, 65, 0, 0, 0, 0, 0, 0, 0, 10, 0, 16, 128 0, 0, 0, 0, 0, 10, 16, 16, 0, 0, 0, 0, 0, 35, 0, 0, 10, 34, 0, 129 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 26, 0, 16, 0, 0, 130 0, 0, 0, 10, 128, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 0, 0, 8, 131 34, 32, 16, 0, 1, 0, 0, 0, 10, 128, 32, 0, 0, 0, 0, 0, 3, 0, 0, 132 0, 42, 0, 16, 0, 0, 0, 0, 0, 78, 0, 0, 9, 66, 0, 16, 0, 0, 0, 133 0, 0, 0, 208, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 26, 128, 32, 0, 0, 134 0, 0, 0, 0, 0, 0, 0, 35, 0, 0, 11, 18, 0, 16, 0, 0, 0, 0, 0, 135 42, 0, 16, 128, 65, 0, 0, 0, 0, 0, 0, 0, 26, 128, 32, 0, 0, 0, 0, 136 0, 0, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 86, 0, 0, 5, 50, 0, 137 16, 0, 1, 0, 0, 0, 134, 0, 16, 0, 0, 0, 0, 0, 35, 0, 0, 10, 34, 138 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 42, 128, 32, 0, 139 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 30, 0, 0, 140 7, 18, 32, 16, 0, 1, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 10, 0, 141 16, 0, 0, 0, 0, 0, 50, 0, 0, 11, 50, 32, 16, 0, 0, 0, 0, 0, 230, 142 138, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 70, 0, 16, 0, 1, 0, 0, 0, 143 70, 128, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 62, 0, 0, 1, 83, 84, 65, 144 84, 116, 0, 0, 0, 13, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 4, 0, 145 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 146 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 147 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 148 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 149 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150 0, 0, 0, 0, 0, 0, 0}; 151