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