23#define FCC_TEXT MAKEFOURCC('T','E','X','T')
24#define FCC_CTAB MAKEFOURCC('C','T','A','B')
42 0x0000001f, 0x80000000, 0x900f0000,
43 0x00000009, 0xc0010000, 0x90e40000, 0xa0e40000,
44 0x00000009, 0xc0020000, 0x90e40000, 0xa0e40001,
45 0x00000009, 0xc0040000, 0x90e40000, 0xa0e40002,
46 0x00000009, 0xc0080000, 0x90e40000, 0xa0e40003,
51 0x00000051, 0xa00f0001, 0x3f800000, 0x00000000, 0x00000000, 0x00000000,
52 0x00000042, 0xb00f0000,
53 0x00000008, 0x800f0000, 0xa0e40001, 0xa0e40000,
54 0x00000005, 0x800f0000, 0x90e40000, 0x80e40000,
55 0x00000005, 0x800f0000, 0xb0e40000, 0x80e40000,
61 0x0008fffe,
FCC_CTAB, 0x0000001c, 0x00000010, 0xfffe0300, 0x00000000,
62 0x00000000, 0x00000000, 0x00000000,
63 0x0004fffe,
FCC_TEXT, 0x00000000, 0x00000000, 0x00000000,
69 0x0000001c, 0x000000a9, 0xfffe0300,
70 0x00000000, 0x00000000,
76 0x0000001c, 0x000000a4, 0xfffe0300, 0x00000003, 0x0000001c, 0x20008100,
78 0x00000058, 0x00070002, 0x00000001, 0x00000064, 0x00000000,
79 0x00000074, 0x00000002, 0x00000004, 0x00000080, 0x00000000,
80 0x00000090, 0x00040002, 0x00000003, 0x00000080, 0x00000000,
81 0x736e6f43, 0x746e6174, 0xabab0031,
82 0x00030001, 0x00040001, 0x00000001, 0x00000000,
83 0x736e6f43, 0x746e6174, 0xabab0032,
84 0x00030003, 0x00040004, 0x00000001, 0x00000000,
85 0x736e6f43, 0x746e6174, 0xabab0033,
86 0x335f7376, 0xab00305f,
87 0x656e6957, 0x6f727020, 0x7463656a, 0xababab00,
93 0x0000001c, 0x000000ec, 0xfffe0300, 0x00000005, 0x0000001c, 0x20008100,
95 0x00000080, 0x00060002, 0x00000001, 0x00000084, 0x00000000,
96 0x00000094, 0x00070002, 0x00000001, 0x00000098, 0x00000000,
97 0x000000A8, 0x00040002, 0x00000001, 0x000000AC, 0x00000000,
98 0x000000BC, 0x00050002, 0x00000001, 0x000000C0, 0x00000000,
99 0x000000D0, 0x00000002, 0x00000004, 0x000000D4, 0x00000000,
100 0xabab0066, 0x00030000, 0x00010001, 0x00000001, 0x00000000,
101 0xab003466, 0x00030001, 0x00040001, 0x00000001, 0x00000000,
102 0xabab0069, 0x00020000, 0x00010001, 0x00000001, 0x00000000,
103 0xab003469, 0x00020001, 0x00040001, 0x00000001, 0x00000000,
104 0x0070766d, 0x00030003, 0x00040004, 0x00000001, 0x00000000,
105 0x335f7376, 0xab00305f,
106 0x656e6957, 0x6f727020, 0x7463656a, 0xababab00,
110 {
"mvp",
D3DXRS_FLOAT4, 0, 4,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 4, 4, 1, 0, 64,
NULL},
111 {
"i",
D3DXRS_FLOAT4, 4, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL},
112 {
"i4",
D3DXRS_FLOAT4, 5, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 4, 1, 0, 16,
NULL},
113 {
"f",
D3DXRS_FLOAT4, 6, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL},
114 {
"f4",
D3DXRS_FLOAT4, 7, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 4, 1, 0, 16,
NULL}};
119 0x0000001c, 0x000000b4, 0xfffe0300, 0x00000003, 0x0000001c, 0x20008100,
121 0x00000058, 0x00070002, 0x00000001, 0x00000064, 0x00000000,
122 0x00000074, 0x00000002, 0x00000004, 0x00000080, 0x00000000,
123 0x00000090, 0x00040002, 0x00000002, 0x0000009c, 0x00000000,
124 0x74616D66, 0x33786972, 0xab003178,
125 0x00030003, 0x00010003, 0x00000001, 0x00000000,
126 0x74616D66, 0x34786972, 0xab003478,
127 0x00030003, 0x00040004, 0x00000001, 0x00000000,
128 0x74616D69, 0x32786972, 0xab003378,
129 0x00020002, 0x00030002, 0x00000001, 0x00000000,
130 0x335f7376, 0xab00305f,
131 0x656e6957, 0x6f727020, 0x7463656a, 0xababab00,
135 {
"fmatrix4x4",
D3DXRS_FLOAT4, 0, 4,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 4, 4, 1, 0, 64,
NULL},
136 {
"imatrix2x3",
D3DXRS_FLOAT4, 4, 2,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 2, 3, 1, 0, 24,
NULL},
137 {
"fmatrix3x1",
D3DXRS_FLOAT4, 7, 1,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 3, 1, 1, 0, 12,
NULL},
143 0x0000001c, 0x0000012b, 0xfffe0200, 0x00000006, 0x0000001c, 0x00000100,
145 0x00000094, 0x00070002, 0x00000003, 0x0000009c, 0x00000000,
146 0x000000ac, 0x000d0002, 0x00000002, 0x000000b4, 0x00000000,
147 0x000000c4, 0x000a0002, 0x00000003, 0x000000cc, 0x00000000,
148 0x000000dc, 0x000f0002, 0x00000002, 0x000000e4, 0x00000000,
149 0x000000f4, 0x00040002, 0x00000003, 0x000000fc, 0x00000000,
150 0x0000010c, 0x00000002, 0x00000004, 0x00000114, 0x00000000,
151 0x33783263, 0xababab00,
152 0x00030003, 0x00030002, 0x00000001, 0x00000000,
153 0x32783363, 0xababab00,
154 0x00030003, 0x00020003, 0x00000001, 0x00000000,
155 0x33783363, 0xababab00,
156 0x00030003, 0x00030003, 0x00000001, 0x00000000,
157 0x33783272, 0xababab00,
158 0x00030002, 0x00030002, 0x00000001, 0x00000000,
159 0x32783372, 0xababab00,
160 0x00030002, 0x00020003, 0x00000001, 0x00000000,
161 0x34783472, 0xababab00,
162 0x00030002, 0x00040004, 0x00000001, 0x00000000,
163 0x325f7376, 0x4100305f, 0x41414141, 0x00414141,
167 {
"c2x3",
D3DXRS_FLOAT4, 7, 3,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 2, 3, 1, 0, 24,
NULL},
168 {
"c3x2",
D3DXRS_FLOAT4, 13, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 3, 2, 1, 0, 24,
NULL},
169 {
"c3x3",
D3DXRS_FLOAT4, 10, 3,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 3, 3, 1, 0, 36,
NULL},
170 {
"r2x3",
D3DXRS_FLOAT4, 15, 2,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 2, 3, 1, 0, 24,
NULL},
171 {
"r3x2",
D3DXRS_FLOAT4, 4, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 2, 1, 0, 24,
NULL},
172 {
"r4x4",
D3DXRS_FLOAT4, 0, 4,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 4, 4, 1, 0, 64,
NULL}};
177 0x0000001c, 0x0000013c, 0xfffe0300, 0x00000006, 0x0000001c, 0x20008100,
179 0x00000094, 0x000E0002, 0x00000002, 0x0000009c, 0x00000000,
180 0x000000ac, 0x00100002, 0x00000002, 0x000000b8, 0x00000000,
181 0x000000c8, 0x00080002, 0x00000004, 0x000000d0, 0x00000000,
182 0x000000e0, 0x00000002, 0x00000008, 0x000000ec, 0x00000000,
183 0x000000fc, 0x000C0002, 0x00000002, 0x00000108, 0x00000000,
184 0x00000118, 0x00120002, 0x00000001, 0x00000124, 0x00000000,
185 0x72726162, 0xab007961,
186 0x00010000, 0x00010001, 0x00000002, 0x00000000,
187 0x63657662, 0x61727261, 0xabab0079,
188 0x00010001, 0x00030001, 0x00000003, 0x00000000,
189 0x72726166, 0xab007961,
190 0x00030000, 0x00010001, 0x00000004, 0x00000000,
191 0x78746d66, 0x61727261, 0xabab0079,
192 0x00030002, 0x00040004, 0x00000002, 0x00000000,
193 0x63657666, 0x61727261, 0xabab0079,
194 0x00030001, 0x00040001, 0x00000002, 0x00000000,
195 0x63657669, 0x61727261, 0xabab0079,
196 0x00020001, 0x00040001, 0x00000001, 0x00000000,
197 0x335f7376, 0xab00305f,
198 0x656e6957, 0x6f727020, 0x7463656a, 0xababab00,
202 {
"fmtxarray",
D3DXRS_FLOAT4, 0, 8,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 4, 4, 2, 0, 128,
NULL},
203 {
"farray",
D3DXRS_FLOAT4, 8, 4,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 4, 0, 16,
NULL},
204 {
"fvecarray",
D3DXRS_FLOAT4, 12, 2,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 4, 2, 0, 32,
NULL},
205 {
"barray",
D3DXRS_FLOAT4, 14, 2,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 2, 0, 8,
NULL},
206 {
"bvecarray",
D3DXRS_FLOAT4, 16, 2,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 3, 0, 36,
NULL},
207 {
"ivecarray",
D3DXRS_FLOAT4, 18, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 4, 1, 0, 16,
NULL}};
212 0x0000001c, 0x000001b7, 0xfffe0200, 0x00000005, 0x0000001c,
213 0x00000100, 0x000001b0,
214 0x00000080, 0x00080002, 0x00000003, 0x00000084, 0x00000094,
215 0x000000c4, 0x000c0002, 0x00000001, 0x000000c8, 0x000000d8,
216 0x000000e8, 0x00040002, 0x00000004, 0x000000f0, 0x00000100,
217 0x00000140, 0x00000002, 0x00000004, 0x000000f0, 0x00000148,
218 0x00000188, 0x000b0002, 0x00000001, 0x00000190, 0x000001a0,
220 0x00030000, 0x00010001, 0x00000003, 0x00000000,
221 0x42c80000, 0x00000000, 0x00000000, 0x00000000,
222 0x43480000, 0x00000000, 0x00000000, 0x00000000,
223 0x43960000, 0x00000000, 0x00000000, 0x00000000,
225 0x00030000, 0x00010001, 0x00000001, 0x00000000,
226 0x411fd70a, 0x00000000, 0x00000000, 0x00000000,
229 0x00030003, 0x00040004, 0x00000001, 0x00000000,
230 0x41300000, 0x425c0000, 0x42c60000, 0x44a42000,
231 0x41b00000, 0x42840000, 0x447c8000, 0x44b0c000,
232 0x42040000, 0x429a0000, 0x448ae000, 0x44bd6000,
233 0x42300000, 0x42b00000, 0x44978000, 0x44ca0000,
236 0x3f800000, 0x40a00000, 0x41100000, 0x41500000,
237 0x40000000, 0x40c00000, 0x41200000, 0x41600000,
238 0x40400000, 0x40e00000, 0x41300000, 0x41700000,
239 0x40800000, 0x41000000, 0x41400000, 0x41800000,
242 0x00030001, 0x00040001, 0x00000001, 0x00000000,
243 0x41200000, 0x41a00000, 0x41f00000, 0x42200000,
244 0x325f7376, 0x4d004141, 0x41414141, 0x00000000,
247static const float mat4_default_value[] = {1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15, 4, 8, 12, 16};
248static const float mat3_default_value[] = {11, 55, 99, 1313, 22, 66, 1010, 1414, 33, 77, 1111, 1515, 44, 88, 1212, 1616};
249static const float arr_default_value[] = {100, 0, 0, 0, 200, 0, 0, 0, 300, 0, 0, 0};
254 {
"mat4",
D3DXRS_FLOAT4, 0, 4,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 4, 4, 1, 0, 64,
mat4_default_value},
255 {
"mat3",
D3DXRS_FLOAT4, 4, 4,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 4, 4, 1, 0, 64,
mat3_default_value},
256 {
"arr",
D3DXRS_FLOAT4, 8, 3,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 3, 0, 12,
arr_default_value},
257 {
"vec4",
D3DXRS_FLOAT4, 11, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 4, 1, 0, 16,
vec4_default_value},
258 {
"flt",
D3DXRS_FLOAT4, 12, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
flt_default_value}};
263 0x0000001c, 0x000000b4, 0xfffe0300, 0x00000003, 0x0000001c, 0x20008100,
265 0x00000058, 0x00020002, 0x00000001, 0x00000064, 0x00000000,
266 0x00000074, 0x00000003, 0x00000001, 0x00000080, 0x00000000,
267 0x00000090, 0x00030003, 0x00000001, 0x0000009c, 0x00000000,
268 0x73746f6e, 0x6c706d61, 0xab007265,
269 0x00030001, 0x00040001, 0x00000001, 0x00000000,
270 0x706d6173, 0x3172656c, 0xababab00,
271 0x000c0004, 0x00010001, 0x00000001, 0x00000000,
272 0x706d6173, 0x3272656c, 0xababab00,
273 0x000d0004, 0x00010001, 0x00000001, 0x00000000,
274 0x335f7376, 0xab00305f,
275 0x656e6957, 0x6f727020, 0x7463656a, 0xababab00,
279 {
"sampler1",
D3DXRS_SAMPLER, 0, 1,
D3DXPC_OBJECT,
D3DXPT_SAMPLER2D, 1, 1, 1, 0, 4,
NULL},
280 {
"sampler2",
D3DXRS_SAMPLER, 3, 1,
D3DXPC_OBJECT,
D3DXPT_SAMPLER3D, 1, 1, 1, 0, 4,
NULL},
281 {
"notsampler",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 4, 1, 0, 16,
NULL}};
287 0x0000001c, 0x000000a4, 0xfffe0300, 0x00000003, 0x0000001c, 0x20008100,
289 0x00000058, 0x00070002, 0x00000001, 0x00000064, 0x00000000,
290 0x00000074, 0x00000002, 0x00000004, 0x00000080, 0x00000000,
291 0x00000090, 0x00040002, 0x00000003, 0x00000080, 0x00000000,
292 0x736e6f43, 0x746e6174, 0xabab0031,
293 0x00030001, 0x00040001, 0x00000001, 0x00000000,
294 0x736e6f43, 0x746e6174, 0xabab0032,
295 0x00030003, 0x00040004, 0x00000001, 0x00000000,
296 0x736e6f43, 0x746e6174, 0xabab0033,
297 0x335f7376, 0xab00305f,
298 0x656e6957, 0x6f727020, 0x7463656a, 0xababab00,
308 ok(shader_size ==
expected,
"Got shader size %u, expected %u\n", shader_size,
expected);
312 ok(shader_size ==
expected,
"Got shader size %u, expected %u\n", shader_size,
expected);
315 ok(shader_size == 0,
"Got shader size %u, expected 0\n", shader_size);
320 DWORD shader_version;
323 ok(shader_version ==
D3DVS_VERSION(1, 1),
"Got shader version 0x%08x, expected 0x%08x\n",
327 ok(shader_version ==
D3DPS_VERSION(1, 1),
"Got shader version 0x%08x, expected 0x%08x\n",
331 ok(shader_version == 0,
"Got shader version 0x%08x, expected 0\n", shader_version);
336 const void *
data = (
void *)0xdeadbeef;
346 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
347 ok(
size == 28,
"Got %u, expected 28\n",
size);
350 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
354 ok(
hr ==
S_FALSE,
"Got result %x, expected 1 (S_FALSE)\n",
hr);
359 ok(
hr ==
S_FALSE,
"Got result %x, expected 1 (S_FALSE)\n",
hr);
364 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
366 ok(
size == 28,
"Got result %u, expected 28\n",
size);
384 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
386 ok(
size == 4,
"Got result %u, expected 4\n",
size);
389 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
391 ok(
size == 4,
"Got result %u, expected 4\n",
size);
394 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
396 ok(
size == 4,
"Got result %u, expected 4\n",
size);
399 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
401 ok(
size == 4,
"Got result %u, expected 4\n",
size);
406 ID3DXConstantTable *constant_table;
412 constant_table = (ID3DXConstantTable *)0xdeadbeef;
415 ok(constant_table ==
NULL,
"D3DXGetShaderConstantTableEx() failed, got %p\n", constant_table);
417 constant_table = (ID3DXConstantTable *)0xdeadbeef;
420 ok(constant_table ==
NULL,
"D3DXGetShaderConstantTableEx() failed, got %p\n", constant_table);
422 constant_table = (ID3DXConstantTable *)0xdeadbeef;
425 ok(constant_table ==
NULL,
"D3DXGetShaderConstantTableEx() failed, got %p\n", constant_table);
427 constant_table = (ID3DXConstantTable *)0xdeadbeef;
430 ok(constant_table ==
NULL,
"D3DXGetShaderConstantTableEx() failed, got %p\n", constant_table);
433 constant_table = (ID3DXConstantTable *)0xdeadbeef;
436 ok(constant_table ==
NULL,
"D3DXGetShaderConstantTableEx() failed, got %p\n", constant_table);
445 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK).\n",
hr);
446 ok(!constant_table,
"D3DXGetShaderConstantTableEx() returned a non-NULL constant table.\n");
449 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK).\n",
hr);
450 ok(!constant_table,
"D3DXGetShaderConstantTableEx() returned a non-NULL constant table.\n");
453 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
454 ok(constant_table !=
NULL,
"D3DXGetShaderConstantTableEx() failed, got NULL\n");
459 ok(
size == 28,
"Got result %x, expected 28\n",
size);
468 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
469 ok(
desc.Creator == (
const char *)
data + 0x10,
"Got result %p, expected %p\n",
470 desc.Creator, (
const char *)
data + 0x10);
472 ok(
desc.Constants == 0,
"Got result %x, expected 0\n",
desc.Constants);
478 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
479 ok(constant_table !=
NULL,
"D3DXGetShaderConstantTableEx() failed, got NULL\n");
490 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
491 ok(!
strcmp(
desc.Creator,
"Wine project"),
"Got result '%s', expected 'Wine project'\n",
desc.Creator);
493 ok(
desc.Constants == 3,
"Got result %x, expected 3\n",
desc.Constants);
499 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
500 ok(!
strcmp(constant_desc.
Name,
"Constant1"),
"Got result '%s', expected 'Constant1'\n",
506 ok(constant_desc.
Rows == 1,
"Got result %x, expected 1\n", constant_desc.
Rows);
507 ok(constant_desc.
Columns == 4,
"Got result %x, expected 4\n", constant_desc.
Columns);
512 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
513 ok(!
strcmp(constant_desc.
Name,
"Constant2"),
"Got result '%s', expected 'Constant2'\n",
519 ok(constant_desc.
Rows == 4,
"Got result %x, expected 1\n", constant_desc.
Rows);
520 ok(constant_desc.
Columns == 4,
"Got result %x, expected 4\n", constant_desc.
Columns);
525 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
526 ok(!
strcmp(constant_desc.
Name,
"Constant3"),
"Got result '%s', expected 'Constant3'\n",
532 ok(constant_desc.
Rows == 4,
"Got result %x, expected 1\n", constant_desc.
Rows);
533 ok(constant_desc.
Columns == 4,
"Got result %x, expected 4\n", constant_desc.
Columns);
534 constant_desc_save = constant_desc;
545 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
554 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
556 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
560 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK)\n",
hr);
567 ok(
hr ==
D3D_OK,
"Got result %x, expected 0 (D3D_OK).\n",
hr);
568 ok(!constant_table,
"D3DXGetShaderConstantTableEx() returned a non-NULL constant table.\n");
575 ID3DXConstantTable *
ctable;
595 ok(pCount == 1,
"%s in %s: Got more or less descriptions: %d\n",
expected->Name,
test_name, pCount);
598 "%s in %s: Got different names: Got %s, expected %s\n",
expected->Name,
601 "%s in %s: Got different register sets: Got %d, expected %d\n",
604 "%s in %s: Got different register indices: Got %d, expected %d\n",
607 "%s in %s: Got different register counts: Got %d, expected %d\n",
610 "%s in %s: Got different classes: Got %d, expected %d\n",
expected->Name,
613 "%s in %s: Got different types: Got %d, expected %d\n",
expected->Name,
616 "%s in %s: Got different dimensions: Got (%d, %d), expected (%d, %d)\n",
620 "%s in %s: Got different element count: Got %d, expected %d\n",
623 "%s in %s: Got different struct member count: Got %d, expected %d\n",
626 "%s in %s: Got different byte count: Got %d, expected %d\n",
632 "%s in %s: Got different default value: expected NULL\n",
638 "%s in %s: Got different default value: expected non-NULL\n",
668 0.514f, 0.626f, 0.804f, 0.786f,
669 0.238f, 0.956f, 0.374f, 0.483f,
670 0.109f, 0.586f, 0.900f, 0.255f,
671 0.898f, 0.411f, 0.932f, 0.275f}}};
672 static const D3DXVECTOR4 f4 = {0.350f, 0.526f, 0.925f, 0.021f};
673 static const float f = 0.12543f;
674 static const int i = 321;
675 static const D3DXMATRIX *matrix_pointer[] = {&mvp};
677 ID3DXConstantTable *
ctable;
685 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed: got 0x%08x\n",
res);
689 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed on variable mvp: got 0x%08x\n",
res);
692 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetInt failed on variable i: got 0x%08x\n",
res);
696 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetInt failed on variable i: got 0x%08x\n",
res);
699 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetFloat failed on variable f: got 0x%08x\n",
res);
702 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetVector failed on variable f4: got 0x%08x\n",
res);
707 "The first row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
709 ok(
out[1] ==
S(
U(mvp))._21 &&
out[5] ==
S(
U(mvp))._22 &&
out[9] ==
S(
U(mvp))._23 &&
out[13] ==
S(
U(mvp))._24,
710 "The second row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
712 ok(
out[2] ==
S(
U(mvp))._31 &&
out[6] ==
S(
U(mvp))._32 &&
out[10] ==
S(
U(mvp))._33 &&
out[14] ==
S(
U(mvp))._34,
713 "The third row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
715 ok(
out[3] ==
S(
U(mvp))._41 &&
out[7] ==
S(
U(mvp))._42 &&
out[11] ==
S(
U(mvp))._43 &&
out[15] ==
S(
U(mvp))._44,
716 "The fourth row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
720 ok(
out[0] == (
float)
i &&
out[1] == 0.0f &&
out[2] == 0.0f &&
out[3] == 0.0f,
721 "The variable i was not set correctly, out={%f, %f, %f, %f}, should be {%d, 0.0, 0.0, 0.0}\n",
726 "The variable f was not set correctly, out={%f, %f, %f, %f}, should be {%f, 0.0, 0.0, 0.0}\n",
731 "The variable f4 was not set correctly, out={%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
736 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetVector failed on variable f: 0x%08x\n",
res);
740 "The variable f was not set correctly by ID3DXConstantTable_SetVector, got %f, should be %f\n",
746 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed on variable f: 0x%08x\n",
res);
750 "The variable f was not set correctly by ID3DXConstantTable_SetMatrix, got %f, should be %f\n",
761 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetVector failed on variable f: 0x%08x\n",
res);
764 ok(
out[0] == 0.0f &&
out[1] == 0.0f &&
out[2] == 0.0f &&
out[3] == 0.0f
765 &&
out[4] == 0.0f &&
out[5] == 0.0f &&
out[6] == 0.0f &&
out[7] == 0.0f
766 &&
out[8] == 0.0f &&
out[9] == 0.0f &&
out[10] == 0.0f &&
out[11] == 0.0f
767 &&
out[12] == 0.0f &&
out[13] == 0.0f &&
out[14] == 0.0f &&
out[15] == 0.0f,
768 "The variable mvp was not set correctly by ID3DXConstantTable_SetVector, "
769 "got {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f %f; %f, %f, %f, %f}, "
770 "should be all 0.0f\n",
777 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetFloat failed on variable mvp: 0x%08x\n",
res);
780 ok(
out[0] == 0.0f &&
out[1] == 0.0f &&
out[2] == 0.0f &&
out[3] == 0.0f
781 &&
out[4] == 0.0f &&
out[5] == 0.0f &&
out[6] == 0.0f &&
out[7] == 0.0f
782 &&
out[8] == 0.0f &&
out[9] == 0.0f &&
out[10] == 0.0f &&
out[11] == 0.0f
783 &&
out[12] == 0.0f &&
out[13] == 0.0f &&
out[14] == 0.0f &&
out[15] == 0.0f,
784 "The variable mvp was not set correctly by ID3DXConstantTable_SetFloat, "
785 "got {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f %f; %f, %f, %f, %f}, "
786 "should be all 0.0f\n",
793 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetFloat failed on variable f4: 0x%08x\n",
res);
796 ok(
out[0] == 0.0f &&
out[1] == 0.0f &&
out[2] == 0.0f &&
out[3] == 0.0f,
797 "The variable f4 was not set correctly by ID3DXConstantTable_SetFloat, "
798 "got {%f, %f, %f, %f}, should be all 0.0f\n",
802 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixTranspose failed on variable f: 0x%08x\n",
res);
806 "The variable f was not set correctly by ID3DXConstantTable_SetMatrixTranspose, got %f, should be %f\n",
810 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixTranspose failed on variable f4: 0x%08x\n",
res);
814 "The variable f4 was not set correctly by ID3DXConstantTable_SetMatrixTranspose, "
815 "got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
817 S(
U(mvp)).
_11,
S(
U(mvp))._21,
S(
U(mvp))._31,
S(
U(mvp))._41);
822 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixPointerArray failed on variable f: got %#x\n",
res);
826 "The variable f was not set correctly by ID3DXConstantTable_SetMatrixPointerArray, "
827 "got %f, should be %f\n",
831 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixPointerArray failed on variable f4: got %#x\n",
res);
835 "The variable f4 was not set correctly by ID3DXConstantTable_SetMatrixPointerArray, "
836 "got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
838 S(
U(mvp)).
_11,
S(
U(mvp))._12,
S(
U(mvp))._13,
S(
U(mvp))._14);
843 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixTransposePointerArray failed on variable f: got %#x\n",
res);
847 "The variable f was not set correctly by ID3DXConstantTable_SetMatrixTransposePointerArray, "
848 "got %f, should be %f\n",
852 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixTransposePointerArray failed on variable f4: got %#x\n",
res);
856 "The variable f4 was not set correctly by ID3DXConstantTable_SetMatrixTransposePointerArray, "
857 "got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
859 S(
U(mvp)).
_11,
S(
U(mvp))._21,
S(
U(mvp))._31,
S(
U(mvp))._41);
862 ok(refcnt == 0,
"The constant table reference count was %u, should be 0\n", refcnt);
868 {{{2.001f, 1.502f, 9.003f, 1.004f,
869 5.005f, 3.006f, 3.007f, 6.008f,
870 9.009f, 5.010f, 7.011f, 1.012f,
871 5.013f, 5.014f, 5.015f, 9.016f}}};
872 static const D3DXMATRIX *matrix_pointer[] = {&fmatrix};
874 ID3DXConstantTable *
ctable;
880 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed: got %#x\n",
res);
883 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed on variable imatrix2x3: got %#x\n",
res);
886 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed on variable fmatrix3x1: got %#x\n",
res);
889 ok(
out[0] == (
int)
S(
U(fmatrix)).
_11 &&
out[1] == (
int)
S(
U(fmatrix))._12 &&
out[2] == (
int)
S(
U(fmatrix))._13
891 &&
out[4] == (
int)
S(
U(fmatrix))._21 &&
out[5] == (
int)
S(
U(fmatrix))._22 &&
out[6] == (
int)
S(
U(fmatrix))._23
893 "The variable imatrix2x3 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f}, "
894 "should be {%d, %d, %d, %d; %d, %d, %d, %d}\n",
896 (
int)
S(
U(fmatrix)).
_11, (
int)
S(
U(fmatrix))._12, (
int)
S(
U(fmatrix))._13, 0,
897 (
int)
S(
U(fmatrix))._21, (
int)
S(
U(fmatrix))._22, (
int)
S(
U(fmatrix))._23, 0);
900 ok(
out[0] ==
S(
U(fmatrix)).
_11 &&
out[1] ==
S(
U(fmatrix))._21 &&
out[2] ==
S(
U(fmatrix))._31 &&
out[3] == 0.0f,
901 "The variable fmatrix3x1 was not set correctly, out={%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
903 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._21,
S(
U(fmatrix))._31, 0.0f);
908 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed: got %#x\n",
res);
912 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed on variable c2x3: got %#x\n",
res);
915 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed on variable r2x3: got %#x\n",
res);
918 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed on variable c3x2: got %#x\n",
res);
921 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed on variable r3x2: got %#x\n",
res);
924 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed on variable c3x3: got %#x\n",
res);
928 &&
out[4] ==
S(
U(fmatrix))._12 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] == 0.0f &&
out[7] == 0.0f
929 &&
out[8] ==
S(
U(fmatrix))._13 &&
out[9] ==
S(
U(fmatrix))._23 &&
out[10] == 0.0f &&
out[11] == 0.0f,
930 "The variable c2x3 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}, "
931 "should be {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}\n",
935 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._21, 0.0f, 0.0f,
936 S(
U(fmatrix))._12,
S(
U(fmatrix))._22, 0.0f, 0.0f,
937 S(
U(fmatrix))._13,
S(
U(fmatrix))._23, 0.0f, 0.0f);
940 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed on variable r4x4: got %#x\n",
res);
944 &&
out[4] ==
S(
U(fmatrix))._21 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] ==
S(
U(fmatrix))._23 &&
out[7] == 0.0f,
945 "The variable r2x3 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f}, "
946 "should be {%f, %f, %f, %f; %f, %f, %f, %f}\n",
948 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._12,
S(
U(fmatrix))._13, 0.0f,
949 S(
U(fmatrix))._21,
S(
U(fmatrix))._22,
S(
U(fmatrix))._23, 0.0f);
953 &&
out[4] ==
S(
U(fmatrix))._12 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] ==
S(
U(fmatrix))._32 &&
out[7] == 0.0f,
954 "The variable c3x2 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f}, "
955 "should be {%f, %f, %f, %f; %f, %f, %f, %f}\n",
957 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._21,
S(
U(fmatrix))._31, 0.0f,
958 S(
U(fmatrix))._12,
S(
U(fmatrix))._22,
S(
U(fmatrix))._32, 0.0f);
962 &&
out[4] ==
S(
U(fmatrix))._21 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] == 0.0f &&
out[7] == 0.0f
963 &&
out[8] ==
S(
U(fmatrix))._31 &&
out[9] ==
S(
U(fmatrix))._32 &&
out[10] == 0.0f &&
out[11] == 0.0f,
964 "The variable r3x2 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}, "
965 "should be {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}\n",
966 out[0],
out[1],
out[2],
out[3],
out[4],
out[5],
out[6],
out[7],
out[8],
out[9],
out[10],
out[11],
967 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._12, 0.0f, 0.0f,
968 S(
U(fmatrix))._21,
S(
U(fmatrix))._22, 0.0f, 0.0f,
969 S(
U(fmatrix))._31,
S(
U(fmatrix))._32, 0.0f, 0.0f);
973 &&
out[4] ==
S(
U(fmatrix))._12 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] ==
S(
U(fmatrix))._32 &&
out[7] == 0.0f
974 &&
out[8] ==
S(
U(fmatrix))._13 &&
out[9] ==
S(
U(fmatrix))._23 &&
out[10] ==
S(
U(fmatrix))._33 &&
out[11] == 0.0f,
975 "The variable c3x3 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}, "
976 "should be {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}\n",
977 out[0],
out[1],
out[2],
out[3],
out[4],
out[5],
out[6],
out[7],
out[8],
out[9],
out[10],
out[11],
978 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._21,
S(
U(fmatrix))._31, 0.0f,
979 S(
U(fmatrix))._12,
S(
U(fmatrix))._22,
S(
U(fmatrix))._32, 0.0f,
980 S(
U(fmatrix))._13,
S(
U(fmatrix))._23,
S(
U(fmatrix))._33, 0.0f);
983 ok(
out[0] ==
S(
U(fmatrix)).
_11 &&
out[1] ==
S(
U(fmatrix))._12 &&
out[2] ==
S(
U(fmatrix))._13 &&
out[3] ==
S(
U(fmatrix))._14
984 &&
out[4] ==
S(
U(fmatrix))._21 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] ==
S(
U(fmatrix))._23 &&
out[7] ==
S(
U(fmatrix))._24
985 &&
out[8] ==
S(
U(fmatrix))._31 &&
out[9] ==
S(
U(fmatrix))._32 &&
out[10] ==
S(
U(fmatrix))._33 &&
out[11] ==
S(
U(fmatrix))._34
986 &&
out[12] ==
S(
U(fmatrix))._41 &&
out[13] ==
S(
U(fmatrix))._42 &&
out[14] ==
S(
U(fmatrix))._43 &&
out[15] ==
S(
U(fmatrix))._44,
987 "The variable r4x4 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}, "
988 "should be {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}\n",
991 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._12,
S(
U(fmatrix))._13,
S(
U(fmatrix))._14,
992 S(
U(fmatrix))._21,
S(
U(fmatrix))._22,
S(
U(fmatrix))._23,
S(
U(fmatrix))._24,
993 S(
U(fmatrix))._31,
S(
U(fmatrix))._32,
S(
U(fmatrix))._33,
S(
U(fmatrix))._34,
994 S(
U(fmatrix))._41,
S(
U(fmatrix))._42,
S(
U(fmatrix))._43,
S(
U(fmatrix))._44);
998 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixTranspose failed on variable c2x3: got %#x\n",
res);
1001 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixTranspose failed on variable r2x3: got %#x\n",
res);
1005 &&
out[4] ==
S(
U(fmatrix))._21 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] == 0.0f &&
out[7] == 0.0f
1006 &&
out[8] ==
S(
U(fmatrix))._31 &&
out[9] ==
S(
U(fmatrix))._32 &&
out[10] == 0.0f &&
out[11] == 0.0f,
1007 "The variable c2x3 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}, "
1008 "should be {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}\n",
1012 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._12, 0.0f, 0.0f,
1013 S(
U(fmatrix))._21,
S(
U(fmatrix))._22, 0.0f, 0.0f,
1014 S(
U(fmatrix))._31,
S(
U(fmatrix))._32, 0.0f, 0.0f);
1017 ok(
out[0] ==
S(
U(fmatrix)).
_11 &&
out[1] ==
S(
U(fmatrix))._21 &&
out[2] ==
S(
U(fmatrix))._31 &&
out[3] == 0.0f
1018 &&
out[4] ==
S(
U(fmatrix))._12 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] ==
S(
U(fmatrix))._32 &&
out[7] == 0.0f,
1019 "The variable r2x3 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f}, "
1020 "should be {%f, %f, %f, %f; %f, %f, %f, %f}\n",
1022 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._21,
S(
U(fmatrix))._31, 0.0f,
1023 S(
U(fmatrix))._12,
S(
U(fmatrix))._22,
S(
U(fmatrix))._32, 0.0f);
1027 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixPointerArray failed on variable c2x3: got %#x\n",
res);
1030 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixPointerArray failed on variable r2x3: got %#x\n",
res);
1034 &&
out[4] ==
S(
U(fmatrix))._12 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] == 0.0f &&
out[7] == 0.0f
1035 &&
out[8] ==
S(
U(fmatrix))._13 &&
out[9] ==
S(
U(fmatrix))._23 &&
out[10] == 0.0f &&
out[11] == 0.0f,
1036 "The variable c2x3 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}, "
1037 "should be {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}\n",
1041 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._21, 0.0f, 0.0f,
1042 S(
U(fmatrix))._12,
S(
U(fmatrix))._22, 0.0f, 0.0f,
1043 S(
U(fmatrix))._13,
S(
U(fmatrix))._23, 0.0f, 0.0f);
1046 ok(
out[0] ==
S(
U(fmatrix)).
_11 &&
out[1] ==
S(
U(fmatrix))._12 &&
out[2] ==
S(
U(fmatrix))._13 &&
out[3] == 0.0f
1047 &&
out[4] ==
S(
U(fmatrix))._21 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] ==
S(
U(fmatrix))._23 &&
out[7] == 0.0f,
1048 "The variable r2x3 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f}, "
1049 "should be {%f, %f, %f, %f; %f, %f, %f, %f}\n",
1051 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._12,
S(
U(fmatrix))._13, 0.0f,
1052 S(
U(fmatrix))._21,
S(
U(fmatrix))._22,
S(
U(fmatrix))._23, 0.0f);
1056 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixTransposePointerArray failed on variable c2x3: got %#x\n",
res);
1059 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixTransposePointerArray failed on variable r2x3: got %#x\n",
res);
1063 &&
out[4] ==
S(
U(fmatrix))._21 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] == 0.0f &&
out[7] == 0.0f
1064 &&
out[8] ==
S(
U(fmatrix))._31 &&
out[9] ==
S(
U(fmatrix))._32 &&
out[10] == 0.0f &&
out[11] == 0.0f,
1065 "The variable c2x3 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}, "
1066 "should be {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}\n",
1070 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._12, 0.0f, 0.0f,
1071 S(
U(fmatrix))._21,
S(
U(fmatrix))._22, 0.0f, 0.0f,
1072 S(
U(fmatrix))._31,
S(
U(fmatrix))._32, 0.0f, 0.0f);
1075 ok(
out[0] ==
S(
U(fmatrix)).
_11 &&
out[1] ==
S(
U(fmatrix))._21 &&
out[2] ==
S(
U(fmatrix))._31 &&
out[3] == 0.0f
1076 &&
out[4] ==
S(
U(fmatrix))._12 &&
out[5] ==
S(
U(fmatrix))._22 &&
out[6] ==
S(
U(fmatrix))._32 &&
out[7] == 0.0f,
1077 "The variable r2x3 was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f}, "
1078 "should be {%f, %f, %f, %f; %f, %f, %f, %f}\n",
1080 S(
U(fmatrix)).
_11,
S(
U(fmatrix))._21,
S(
U(fmatrix))._31, 0.0f,
1081 S(
U(fmatrix))._12,
S(
U(fmatrix))._22,
S(
U(fmatrix))._32, 0.0f);
1088 static const float farray[8] = {
1089 0.005f, 0.745f, 0.973f, 0.264f,
1090 0.010f, 0.020f, 0.030f, 0.040f};
1092 {{{0.001f, 0.002f, 0.003f, 0.004f,
1093 0.005f, 0.006f, 0.007f, 0.008f,
1094 0.009f, 0.010f, 0.011f, 0.012f,
1095 0.013f, 0.014f, 0.015f, 0.016f}}},
1096 {{{0.010f, 0.020f, 0.030f, 0.040f,
1097 0.050f, 0.060f, 0.070f, 0.080f,
1098 0.090f, 0.100f, 0.110f, 0.120f,
1099 0.130f, 0.140f, 0.150f, 0.160f}}}};
1100 static const int iarray[4] = {1, 2, 3, 4};
1102 {0.745f, 0.997f, 0.353f, 0.237f},
1103 {0.060f, 0.455f, 0.333f, 0.983f}};
1106 ID3DXConstantTable *
ctable;
1119 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed: got 0x%08x\n",
res);
1125 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetFloatArray failed: got 0x%08x\n",
res);
1128 ok(
out[0] == farray[0] &&
out[4] == farray[1] &&
out[8] == farray[2] &&
out[12] == farray[3],
1129 "The in-bounds elements of the array were not set, out={%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1130 out[0],
out[4],
out[8],
out[12], farray[0], farray[1], farray[2], farray[3]);
1131 ok(
out[16] == 0.0f &&
out[20] == 0.0f &&
out[24] == 0.0f &&
out[28] == 0.0f,
1132 "The excess elements of the array were set, out={%f, %f, %f, %f}, should be all 0.0f\n",
1137 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed: got 0x%08x\n",
res);
1140 ok(
out[0] == 0.0f &&
out[1] == 0.0f &&
out[2] == 0.0f &&
out[3] == 0.0f,
1141 "The array was set, out={%f, %f, %f, %f}, should be all 0.0f\n",
out[0],
out[1],
out[2],
out[3]);
1145 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetIntArray failed: got 0x%08x\n",
res);
1148 ok(
out[0] == iarray[0] &&
out[4] == iarray[1] &&
out[8] == iarray[2] &&
out[12] == iarray[3],
1149 "SetIntArray did not properly set a float array: out={%f, %f, %f, %f}, should be {%d, %d, %d, %d}\n",
1150 out[0],
out[4],
out[8],
out[12], iarray[0], iarray[1], iarray[2], iarray[3]);
1153 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetFloatArray failed: got x0%08x\n",
res);
1156 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetVectorArray failed: got 0x%08x\n",
res);
1159 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrixArray failed: got 0x%08x\n",
res);
1162 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetBoolArray failed: got 0x%08x\n",
res);
1166 ok(
out[0] == farray[0] &&
out[4] == farray[1] &&
out[8] == farray[2] &&
out[12] == farray[3],
1167 "The variable farray was not set correctly, out={%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1168 out[0],
out[4],
out[8],
out[12], farray[0], farray[1], farray[2], farray[3]);
1171 ok(
out[0] == fvecarray[0].
x &&
out[1] == fvecarray[0].
y &&
out[2] == fvecarray[0].
z &&
out[3] == fvecarray[0].
w &&
1172 out[4] == fvecarray[1].
x &&
out[5] == fvecarray[1].
y &&
out[6] == fvecarray[1].
z &&
out[7] == fvecarray[1].
w,
1173 "The variable fvecarray was not set correctly, out={{%f, %f, %f, %f}, {%f, %f, %f, %f}}, should be "
1174 "{{%f, %f, %f, %f}, {%f, %f, %f, %f}}\n",
out[0],
out[1],
out[2],
out[3],
out[4],
out[5],
out[6],
out[7],
1175 fvecarray[0].
x, fvecarray[0].
y, fvecarray[0].
z, fvecarray[0].
w, fvecarray[1].
x, fvecarray[1].
y,
1176 fvecarray[1].
z, fvecarray[1].
w);
1179 ok(
out[0] == 0.0f &&
out[1] == 0.0f &&
out[2] == 0.0f &&
out[3] == 0.0f
1180 &&
out[4] == 1.0f &&
out[5] == 0.0f &&
out[6] == 0.0f &&
out[7] == 0.0f,
1181 "The variable barray was not set correctly, out={%f, %f %f, %f; %f, %f, %f, %f}, should be {%f, %f, %f, %f; %f, %f, %f, %f}\n",
1183 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f);
1187 ok(
out[0] ==
S(
U(fmtxarray[0])).
_11 &&
out[1] ==
S(
U(fmtxarray[0]))._12 &&
out[2] ==
S(
U(fmtxarray[0]))._13 &&
out[3] ==
S(
U(fmtxarray[0]))._14,
1188 "The variable fmtxarray was not set row-major, out={%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1189 out[0],
out[1],
out[2],
out[3],
S(
U(fmtxarray[0])).
_11,
S(
U(fmtxarray[0]))._12,
S(
U(fmtxarray[0]))._13,
S(
U(fmtxarray[0]))._14);
1190 ok(
out[16] ==
S(
U(fmtxarray[1])).
_11 &&
out[17] ==
S(
U(fmtxarray[1]))._12 &&
out[18] ==
S(
U(fmtxarray[1]))._13 &&
out[19] ==
S(
U(fmtxarray[1]))._14,
1191 "The variable fmtxarray was not set row-major, out={%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1192 out[16],
out[17],
out[18],
out[19],
S(
U(fmtxarray[1])).
_11,
S(
U(fmtxarray[1]))._12,
S(
U(fmtxarray[1]))._13,
S(
U(fmtxarray[1]))._14);
1195 ok(refcnt == 0,
"The constant table reference count was %u, should be 0\n", refcnt);
1201 0.51f, 0.62f, 0.80f, 0.78f,
1202 0.23f, 0.95f, 0.37f, 0.48f,
1203 0.10f, 0.58f, 0.90f, 0.25f,
1204 0.89f, 0.41f, 0.93f, 0.27f}}};
1210 ID3DXConstantTable *
ctable;
1213 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed: got %08x\n",
res);
1216 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetVector failed: got %08x\n",
res);
1219 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetMatrix failed: got %08x\n",
res);
1222 ok(
res ==
D3D_OK,
"ID3dXConstantTable_SetDefaults failed: got %08x\n",
res);
1227 "The first row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1229 ok(
out[1] ==
S(
U(mvp))._21 &&
out[5] ==
S(
U(mvp))._22 &&
out[9] ==
S(
U(mvp))._23 &&
out[13] ==
S(
U(mvp))._24,
1230 "The second row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1232 ok(
out[2] ==
S(
U(mvp))._31 &&
out[6] ==
S(
U(mvp))._32 &&
out[10] ==
S(
U(mvp))._33 &&
out[14] ==
S(
U(mvp))._34,
1233 "The third row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1235 ok(
out[3] ==
S(
U(mvp))._41 &&
out[7] ==
S(
U(mvp))._42 &&
out[11] ==
S(
U(mvp))._43 &&
out[15] ==
S(
U(mvp))._44,
1236 "The fourth row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1241 "The variable f4 was not set correctly, out={%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1247 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed: got %08x\n",
res);
1250 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetDefaults failed: got %08x\n",
res);
1254 "The variable mat4 was not set correctly to default value\n");
1258 "The variable mat3 was not set correctly to default value\n");
1262 "The variable array was not set correctly to default value\n");
1266 "The variable vec4 was not set correctly to default value\n");
1270 "The variable flt was not set correctly to default value\n");
1278 0.51f, 0.62f, 0.80f, 0.78f,
1279 0.23f, 0.95f, 0.37f, 0.48f,
1280 0.10f, 0.58f, 0.90f, 0.25f,
1281 0.89f, 0.41f, 0.93f, 0.27f}}};
1283 static const FLOAT arr[] = {0.33f, 0.55f, 0.96f, 1.00f,
1284 1.00f, 1.00f, 1.00f, 1.00f,
1285 1.00f, 1.00f, 1.00f, 1.00f};
1286 static int imatrix[] = {1, 2, 3, 4, 5, 6};
1287 static float fmatrix[] = {1.1f, 2.2f, 3.3f, 4.4f};
1289 static float fvecarray[] = {9.1f, 9.2f, 9.3f, 9.4f, 9.5f, 9.6f, 9.7f, 9.8f};
1290 static float farray[] = {2.2f, 3.3f};
1292 static const float def[16] = {5.5f, 5.5f, 5.5f, 5.5f,
1293 5.5f, 5.5f, 5.5f, 5.5f,
1294 5.5f, 5.5f, 5.5f, 5.5f,
1295 5.5f, 5.5f, 5.5f, 5.5f};
1299 ID3DXConstantTable *
ctable;
1302 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed: got %08x\n",
res);
1308 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetValue failed: got %08x\n",
res);
1312 "The variable f4 was not set correctly, out={%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1313 out[0],
out[1],
out[2],
out[3], def[0], def[1], def[2], def[3]);
1316 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetValue failed: got %08x\n",
res);
1320 "The variable f4 was not set correctly, out={%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1327 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetValue returned %08x\n",
res);
1331 "The variable mvp was not set correctly, out={%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}, "
1332 "should be {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}\n",
1337 def[0], def[4], def[ 8], def[12],
1338 def[1], def[5], def[ 9], def[13],
1339 def[2], def[6], def[10], def[14],
1340 def[3], def[7], def[11], def[15]);
1343 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetValue failed: got %08x\n",
res);
1347 "The first row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1349 ok(
out[1] ==
S(
U(mvp))._21 &&
out[5] ==
S(
U(mvp))._22 &&
out[9] ==
S(
U(mvp))._23 &&
out[13] ==
S(
U(mvp))._24,
1350 "The second row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1352 ok(
out[2] ==
S(
U(mvp))._31 &&
out[6] ==
S(
U(mvp))._32 &&
out[10] ==
S(
U(mvp))._33 &&
out[14] ==
S(
U(mvp))._34,
1353 "The third row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1355 ok(
out[3] ==
S(
U(mvp))._41 &&
out[7] ==
S(
U(mvp))._42 &&
out[11] ==
S(
U(mvp))._43 &&
out[15] ==
S(
U(mvp))._44,
1356 "The fourth row of mvp was not set correctly, got {%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1362 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed: got %08x\n",
res);
1365 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetValue failed: got %08x\n",
res);
1368 ok(
out[0] == arr[0] &&
out[4] == arr[1] &&
out[8] == arr[2]
1369 &&
out[1] == 0 &&
out[2] == 0 &&
out[3] == 0 &&
out[5] == 0 &&
out[6] == 0 &&
out[7] == 0
1370 &&
out[9] == 0 &&
out[10] == 0 &&
out[11] == 0,
1371 "The variable arr was not set correctly, out={%f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f}, "
1372 "should be {0.33, 0, 0, 0, 0.55, 0, 0, 0, 0.96, 0, 0, 0}\n",
1373 out[0],
out[1],
out[2],
out[3],
out[4],
out[5],
out[6],
out[7],
out[8],
out[9],
out[10],
out[11]);
1378 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed: got %08x\n",
res);
1381 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetValue failed: got %08x\n",
res);
1384 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetValue failed: got %08x\n",
res);
1387 ok(
out[0] == imatrix[0] &&
out[1] == imatrix[1] &&
out[2] == imatrix[2] &&
out[3] == 0.0f
1388 &&
out[4] == imatrix[3] &&
out[5] == imatrix[4] &&
out[6] == imatrix[5] &&
out[7] == 0.0f,
1389 "The variable imatrix2x3 was not set correctly, out={%f, %f, %f, %f, %f, %f, %f, %f}, "
1390 "should be {%d, %d, %d, 0, %d, %d, %d, 0}\n",
1392 imatrix[0], imatrix[1], imatrix[2], imatrix[3], imatrix[4], imatrix[5]);
1395 ok(
out[0] == fmatrix[0] &&
out[1] == fmatrix[1] &&
out[2] == fmatrix[2] &&
out[3] == 0.0f,
1396 "The variable fmatrix3x1 was not set correctly, out={%f, %f, %f, %f}, should be {%f, %f, %f, %f}\n",
1398 fmatrix[0], fmatrix[1], fmatrix[2], 0.0f);
1403 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed: got %08x\n",
res);
1406 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetValue failed: got %08x\n",
res);
1409 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetValue failed: got %08x\n",
res);
1413 ok(
res ==
D3D_OK,
"ID3DXConstantTable_SetValue failed: got %08x\n",
res);
1417 ok(
out[0] == farray[0] &&
out[1] == 0.0f &&
out[2] == 0.0f &&
out[3] == 0.0f
1418 &&
out[4] == farray[1] &&
out[5] == 0.0f &&
out[6] == 0.0f &&
out[7] == 0.0f
1419 &&
out[8] == def[8] &&
out[9] == def[9] &&
out[10] == def[10] &&
out[11] == def[11]
1420 &&
out[12] == def[12] &&
out[13] == def[13] &&
out[14] == def[14] &&
out[15] == def[15],
1421 "The variable farray was not set correctly, should be {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}, "
1422 "should be {%f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f; %f, %f, %f, %f}\n",
1425 farray[0], 0.0f, 0.0f, 0.0f,
1426 farray[1], 0.0f, 0.0f, 0.0f,
1427 def[8], def[9], def[10], def[11],
1428 def[12], def[13], def[14], def[15]);
1431 ok(
out[0] == fvecarray[0] &&
out[1] == fvecarray[1] &&
out[2] == fvecarray[2] &&
out[3] == fvecarray[3]
1432 &&
out[4] == fvecarray[4] &&
out[5] == fvecarray[5] &&
out[6] == fvecarray[6] &&
out[7] == fvecarray[7],
1433 "The variable fvecarray was not set correctly, out ={%f, %f, %f, %f, %f, %f, %f, %f}, "
1434 "should be {%f, %f, %f, %f, %f, %f, %f, %f}\n",
1436 fvecarray[0], fvecarray[1], fvecarray[2], fvecarray[3], fvecarray[4], fvecarray[5], fvecarray[6], fvecarray[7]);
1439 ok(
out[0] == 1.0f &&
out[1] == 0.0f &&
out[2] == 0.0f &&
out[3] == 0.0f
1440 &&
out[4] == 0.0f &&
out[5] == 0.0f &&
out[6] == 0.0f &&
out[7] == 0.0f,
1441 "The variable barray was not set correctly, out={%f, %f, %f, %f, %f, %f, %f, %f}, "
1442 "should be {%f, %f, %f, %f, %f, %f, %f, %f}\n",
1444 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
1453 IDirect3DDevice9 *
device;
1461 skip(
"Couldn't create application window\n");
1466 skip(
"Couldn't create IDirect3D9 object\n");
1477 skip(
"Failed to create IDirect3DDevice9 object %#x\n",
hr);
1491 ok(refcnt == 0,
"The Direct3D device reference count was %u, should be 0\n", refcnt);
1494 ok(refcnt == 0,
"The Direct3D object reference count was %u, should be 0\n", refcnt);
1501 ID3DXConstantTable *
ctable;
1509 ok(
res ==
D3D_OK,
"D3DXGetShaderConstantTable failed on ctab_samplers: got %08x\n",
res);
1512 ok(
index == 0,
"ID3DXConstantTable_GetSamplerIndex returned wrong index: Got %d, expected 0\n",
index);
1515 ok(
index == 3,
"ID3DXConstantTable_GetSamplerIndex returned wrong index: Got %d, expected 3\n",
index);
1518 ok(
index == -1,
"ID3DXConstantTable_GetSamplerIndex found nonexistent sampler: Got %d\n",
1522 ok(
index == -1,
"ID3DXConstantTable_GetSamplerIndex succeeded on non-sampler constant: Got %d\n",
1526 ok(refcnt == 0,
"The ID3DXConstantTable reference count was %u, should be 0\n", refcnt);
1539float4
main(float3 tex : TEXCOORD0) :
COLOR
1542 tmp = tmp + tex1D(s1D, tex.x);
1543 tmp = tmp + tex1D(s1D, tex.y);
1544 tmp = tmp + tex3D(s3D, tex.xyz);
1545 tmp = tmp + tex1D(
s, tex.x);
1546 tmp = tmp + tex2D(s2D, tex.xy);
1547 tmp = tmp + texCUBE(scube, tex.xyz);
1555 0x0000001c, 0x0000011b, 0xffff0300, 0x00000006, 0x0000001c, 0x00000100,
1557 0x00000094, 0x00000002, 0x00000001, 0x0000009c, 0x00000000,
1558 0x000000ac, 0x00040003, 0x00000001, 0x000000b0, 0x00000000,
1559 0x000000c0, 0x00000003, 0x00000001, 0x000000c4, 0x00000000,
1560 0x000000d4, 0x00010003, 0x00000001, 0x000000d8, 0x00000000,
1561 0x000000e8, 0x00030003, 0x00000001, 0x000000ec, 0x00000000,
1562 0x000000fc, 0x00020003, 0x00000001, 0x00000104, 0x00000000,
1563 0x74696e69, 0xababab00,
1564 0x00030001, 0x00040001, 0x00000001, 0x00000000,
1566 0x000c0004, 0x00010001, 0x00000001, 0x00000000,
1568 0x000b0004, 0x00010001, 0x00000001, 0x00000000,
1570 0x000c0004, 0x00010001, 0x00000001, 0x00000000,
1572 0x000d0004, 0x00010001, 0x00000001, 0x00000000,
1573 0x62756373, 0xabab0065,
1574 0x000e0004, 0x00010001, 0x00000001, 0x00000000,
1575 0x335f7370, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820,
1576 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932,
1577 0x332e3235, 0x00313131,
1578 0x0200001f, 0x80000005, 0x90070000, 0x0200001f, 0x90000000, 0xa00f0800,
1579 0x0200001f, 0x90000000, 0xa00f0801, 0x0200001f, 0x98000000, 0xa00f0802,
1580 0x0200001f, 0xa0000000, 0xa00f0803, 0x0200001f, 0x90000000, 0xa00f0804,
1581 0x03000042, 0x800f0000, 0x90e40000, 0xa0e40800, 0x03000002, 0x800f0000,
1582 0x80e40000, 0xa0e40000, 0x03000042, 0x800f0001, 0x90550000, 0xa0e40800,
1583 0x03000002, 0x800f0000, 0x80e40000, 0x80e40001, 0x03000042, 0x800f0001,
1584 0x90e40000, 0xa0e40803, 0x03000002, 0x800f0000, 0x80e40000, 0x80e40001,
1585 0x03000042, 0x800f0001, 0x90e40000, 0xa0e40804, 0x03000002, 0x800f0000,
1586 0x80e40000, 0x80e40001, 0x03000042, 0x800f0001, 0x90e40000, 0xa0e40801,
1587 0x03000002, 0x800f0000, 0x80e40000, 0x80e40001, 0x03000042, 0x800f0001,
1588 0x90e40000, 0xa0e40802, 0x03000002, 0x800f0800, 0x80e40000, 0x80e40001,
1595 const char *sampler_orig;
1616 ok(sampler_orig ==
samplers[0],
"D3DXGetShaderSamplers failed, got %p, expected %p\n",
samplers[0], sampler_orig);
1619 ok(sampler_orig ==
samplers[1],
"D3DXGetShaderSamplers failed, got %p, expected %p\n",
samplers[1], sampler_orig);
1622 ok(sampler_orig ==
samplers[2],
"D3DXGetShaderSamplers failed, got %p, expected %p\n",
samplers[2], sampler_orig);
1625 ok(sampler_orig ==
samplers[3],
"D3DXGetShaderSamplers failed, got %p, expected %p\n",
samplers[3], sampler_orig);
1628 ok(sampler_orig ==
samplers[4],
"D3DXGetShaderSamplers failed, got %p, expected %p\n",
samplers[4], sampler_orig);
1630 ok(!
strcmp(
samplers[5],
"dummy"),
"D3DXGetShaderSamplers failed, got \"%s\", expected \"%s\"\n",
samplers[5],
"dummy");
1638 ok(
count == 5,
"D3DXGetShaderSamplers failed, got %u, expected %u\n",
count, 5);
1642 ok(
count == 5,
"D3DXGetShaderSamplers failed, got %u, expected %u\n",
count, 5);
1646 ok(sampler_orig ==
samplers[0],
"D3DXGetShaderSamplers failed, got %p, expected %p\n",
samplers[0], sampler_orig);
1649 ok(sampler_orig ==
samplers[1],
"D3DXGetShaderSamplers failed, got %p, expected %p\n",
samplers[1], sampler_orig);
1652 ok(sampler_orig ==
samplers[2],
"D3DXGetShaderSamplers failed, got %p, expected %p\n",
samplers[2], sampler_orig);
1655 ok(sampler_orig ==
samplers[3],
"D3DXGetShaderSamplers failed, got %p, expected %p\n",
samplers[3], sampler_orig);
1658 ok(sampler_orig ==
samplers[4],
"D3DXGetShaderSamplers failed, got %p, expected %p\n",
samplers[4], sampler_orig);
1660 ok(!
strcmp(
samplers[5],
"dummy"),
"D3DXGetShaderSamplers failed, got \"%s\", expected \"%s\"\n",
samplers[5],
"dummy");
1665 ok(
count == 0,
"D3DXGetShaderSamplers failed, got %u, expected %u\n",
count, 0);
1670 ok(
count == 0,
"D3DXGetShaderSamplers failed, got %u, expected %u\n",
count, 0);
1677float f = {1.1f}, f_2[2] = {2.1f, 2.2f};
1678struct {
float f;
int i;}
s = {3.1f, 31},
1679s_2[2] = {{4.1f, 41}, {4.2f, 42}},
1680s_3[3] = {{5.1f, 51}, {5.2f, 52}, {5.3f, 53}};
1681struct {
int i1;
int i2; float2 f_2; row_major float3x1
r[2];}
1682p[2] = {{11, 12, {13.1, 14.1}, {{3.11, 3.21, 3.31}, {3.41, 3.51, 3.61}}},
1683 {15, 16, {17.1, 18.1}, {{4.11, 4.21, 4.31}, {4.41, 4.51, 4.61}}}};
1685float2x3 f23[2] = {{0.11, 0.21, 0.31, 0.41, 0.51, 0.61}, {0.12, 0.22, 0.32, 0.42, 0.52, 0.62}};
1686float3x2 f32[2] = {{1.11, 1.21, 1.31, 1.41, 1.51, 1.61}, {1.12, 1.22, 1.32, 1.42, 1.52, 1.62}};
1687float3
v[2] = {{2.11, 2.21, 2.31}, {2.41, 2.51, 2.61}};
1688row_major float3x1 r31[2] = {{3.11, 3.21, 3.31}, {3.41, 3.51, 3.61}};
1689row_major float1x3 r13[2] = {{4.11, 4.21, 4.31}, {4.41, 4.51, 4.61}};
1693 tmp.zyw =
v[1] + r13[1] + r31[1] +
p[1].r[1];
1694 tmp.x +=
f * f_2[1] *
pos.x *
p[1].f_2.y;
1695 tmp.y +=
s.f *
pos.y * s_2[0].i;
1696 tmp.z += s_3[0].f *
pos.z * s_3[2].f *
i[0] * f23[1]._11 * f32[1]._32;
17020xfffe0300, 0x0185fffe, 0x42415443, 0x0000001c, 0x000005df, 0xfffe0300, 0x0000000c, 0x0000001c,
17030x00000100, 0x000005d8, 0x0000010c, 0x002d0002, 0x00000001, 0x00000110, 0x00000120, 0x00000130,
17040x001d0002, 0x00000004, 0x00000134, 0x00000144, 0x000001a4, 0x00210002, 0x00000004, 0x000001a8,
17050x000001b8, 0x000001f8, 0x00250002, 0x00000002, 0x000001fc, 0x0000020c, 0x0000022c, 0x002f0002,
17060x00000001, 0x00000230, 0x00000240, 0x00000250, 0x00000002, 0x00000012, 0x000002b0, 0x000002c0,
17070x000003e0, 0x002b0002, 0x00000002, 0x000003e4, 0x000003f4, 0x00000414, 0x00120002, 0x00000006,
17080x00000418, 0x00000428, 0x00000488, 0x002e0002, 0x00000001, 0x000004ac, 0x000004bc, 0x000004dc,
17090x00270002, 0x00000002, 0x000004e0, 0x000004f0, 0x00000530, 0x00180002, 0x00000005, 0x00000534,
17100x00000544, 0x000005a4, 0x00290002, 0x00000002, 0x000005a8, 0x000005b8, 0xabab0066, 0x00030000,
17110x00010001, 0x00000001, 0x00000000, 0x3f8ccccd, 0x00000000, 0x00000000, 0x00000000, 0x00333266,
17120x00030003, 0x00030002, 0x00000002, 0x00000000, 0x3de147ae, 0x3ed1eb85, 0x00000000, 0x00000000,
17130x3e570a3d, 0x3f028f5c, 0x00000000, 0x00000000, 0x3e9eb852, 0x3f1c28f6, 0x00000000, 0x00000000,
17140x3df5c28f, 0x3ed70a3d, 0x00000000, 0x00000000, 0x3e6147ae, 0x3f051eb8, 0x00000000, 0x00000000,
17150x3ea3d70a, 0x3f1eb852, 0x00000000, 0x00000000, 0x00323366, 0x00030003, 0x00020003, 0x00000002,
17160x00000000, 0x3f8e147b, 0x3fa7ae14, 0x3fc147ae, 0x00000000, 0x3f9ae148, 0x3fb47ae1, 0x3fce147b,
17170x00000000, 0x3f8f5c29, 0x3fa8f5c3, 0x3fc28f5c, 0x00000000, 0x3f9c28f6, 0x3fb5c28f, 0x3fcf5c29,
17180x00000000, 0x00325f66, 0x00030000, 0x00010001, 0x00000002, 0x00000000, 0x40066666, 0x00000000,
17190x00000000, 0x00000000, 0x400ccccd, 0x00000000, 0x00000000, 0x00000000, 0xabab0069, 0x00020000,
17200x00010001, 0x00000001, 0x00000000, 0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x31690070,
17210xababab00, 0x00020000, 0x00010001, 0x00000001, 0x00000000, 0xab003269, 0x00030001, 0x00020001,
17220x00000001, 0x00000000, 0xabab0072, 0x00030002, 0x00010003, 0x00000002, 0x00000000, 0x00000252,
17230x00000258, 0x00000268, 0x00000258, 0x000001f8, 0x0000026c, 0x0000027c, 0x00000280, 0x00000005,
17240x000a0001, 0x00040002, 0x00000290, 0x41300000, 0x00000000, 0x00000000, 0x00000000, 0x41400000,
17250x00000000, 0x00000000, 0x00000000, 0x4151999a, 0x4161999a, 0x00000000, 0x00000000, 0x40470a3d,
17260x00000000, 0x00000000, 0x00000000, 0x404d70a4, 0x00000000, 0x00000000, 0x00000000, 0x4053d70a,
17270x00000000, 0x00000000, 0x00000000, 0x405a3d71, 0x00000000, 0x00000000, 0x00000000, 0x4060a3d7,
17280x00000000, 0x00000000, 0x00000000, 0x40670a3d, 0x00000000, 0x00000000, 0x00000000, 0x41700000,
17290x00000000, 0x00000000, 0x00000000, 0x41800000, 0x00000000, 0x00000000, 0x00000000, 0x4188cccd,
17300x4190cccd, 0x00000000, 0x00000000, 0x4083851f, 0x00000000, 0x00000000, 0x00000000, 0x4086b852,
17310x00000000, 0x00000000, 0x00000000, 0x4089eb85, 0x00000000, 0x00000000, 0x00000000, 0x408d1eb8,
17320x00000000, 0x00000000, 0x00000000, 0x409051ec, 0x00000000, 0x00000000, 0x00000000, 0x4093851f,
17330x00000000, 0x00000000, 0x00000000, 0x00333172, 0x00030002, 0x00030001, 0x00000002, 0x00000000,
17340x4083851f, 0x4086b852, 0x4089eb85, 0x00000000, 0x408d1eb8, 0x409051ec, 0x4093851f, 0x00000000,
17350x00313372, 0x00030002, 0x00010003, 0x00000002, 0x00000000, 0x40470a3d, 0x00000000, 0x00000000,
17360x00000000, 0x404d70a4, 0x00000000, 0x00000000, 0x00000000, 0x4053d70a, 0x00000000, 0x00000000,
17370x00000000, 0x405a3d71, 0x00000000, 0x00000000, 0x00000000, 0x4060a3d7, 0x00000000, 0x00000000,
17380x00000000, 0x40670a3d, 0x00000000, 0x00000000, 0x00000000, 0xabab0073, 0x00030000, 0x00010001,
17390x00000001, 0x00000000, 0x0000010c, 0x0000048c, 0x0000022c, 0x00000258, 0x00000005, 0x00020001,
17400x00020001, 0x0000049c, 0x40466666, 0x00000000, 0x00000000, 0x00000000, 0x41f80000, 0x00000000,
17410x00000000, 0x00000000, 0x00325f73, 0x00000005, 0x00020001, 0x00020002, 0x0000049c, 0x40833333,
17420x00000000, 0x00000000, 0x00000000, 0x42240000, 0x00000000, 0x00000000, 0x00000000, 0x40866666,
17430x00000000, 0x00000000, 0x00000000, 0x42280000, 0x00000000, 0x00000000, 0x00000000, 0x00335f73,
17440x00000005, 0x00020001, 0x00020003, 0x0000049c, 0x40a33333, 0x00000000, 0x00000000, 0x00000000,
17450x424c0000, 0x00000000, 0x00000000, 0x00000000, 0x40a66666, 0x00000000, 0x00000000, 0x00000000,
17460x42500000, 0x00000000, 0x00000000, 0x00000000, 0x40a9999a, 0x00000000, 0x00000000, 0x00000000,
17470x42540000, 0x00000000, 0x00000000, 0x00000000, 0xabab0076, 0x00030001, 0x00030001, 0x00000002,
17480x00000000, 0x40070a3d, 0x400d70a4, 0x4013d70a, 0x00000000, 0x401a3d71, 0x4020a3d7, 0x40270a3d,
17490x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c,
17500x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932, 0x332e3235, 0x00313131, 0x0200001f,
17510x80000000, 0x900f0000, 0x0200001f, 0x80000000, 0xe00f0000, 0x02000001, 0x80070000, 0xa0e4002a,
17520x03000002, 0x80070000, 0x80e40000, 0xa0e4002c, 0x03000002, 0x80040000, 0x80aa0000, 0xa0000017,
17530x03000002, 0xe0080000, 0x80aa0000, 0xa0000011, 0x02000001, 0x80010001, 0xa000002d, 0x03000005,
17540x80040000, 0x80000001, 0xa0000026, 0x03000005, 0x80040000, 0x80aa0000, 0x90000000, 0x03000005,
17550xe0010000, 0x80aa0000, 0xa055000b, 0x03000002, 0x80020000, 0x80550000, 0xa0000016, 0x03000002,
17560x80010000, 0x80000000, 0xa0000015, 0x03000002, 0x80010000, 0x80000000, 0xa000000f, 0x03000002,
17570x80020000, 0x80550000, 0xa0000010, 0x03000005, 0x80040000, 0xa000002e, 0x90550000, 0x04000004,
17580xe0020000, 0x80aa0000, 0xa0000028, 0x80550000, 0x03000005, 0x80020000, 0xa0000018, 0x90aa0000,
17590x03000005, 0x80020000, 0x80550000, 0xa000001c, 0x03000005, 0x80020000, 0x80550000, 0xa000002f,
17600x03000005, 0x80020000, 0x80550000, 0xa0000020, 0x04000004, 0xe0040000, 0x80550000, 0xa0aa0024,
17610x80000000, 0x0000ffff,
1772 {
"f", {
"f",
D3DXRS_FLOAT4, 45, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 72},
1773 {
"f23", {
"f23",
D3DXRS_FLOAT4, 29, 4,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 2, 3, 2, 0, 48,
NULL}, 81},
1774 {
"f23[0]", {
"f23",
D3DXRS_FLOAT4, 29, 3,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 2, 3, 1, 0, 24,
NULL}, 81},
1775 {
"f23[1]", {
"f23",
D3DXRS_FLOAT4, 32, 1,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 2, 3, 1, 0, 24,
NULL}, 93},
1776 {
"f32", {
"f32",
D3DXRS_FLOAT4, 33, 4,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 3, 2, 2, 0, 48,
NULL}, 110},
1777 {
"f32[0]", {
"f32",
D3DXRS_FLOAT4, 33, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 3, 2, 1, 0, 24,
NULL}, 110},
1778 {
"f32[1]", {
"f32",
D3DXRS_FLOAT4, 35, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 3, 2, 1, 0, 24,
NULL}, 118},
1779 {
"f_2", {
"f_2",
D3DXRS_FLOAT4, 37, 2,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 2, 0, 8,
NULL}, 131},
1780 {
"f_2[0]", {
"f_2",
D3DXRS_FLOAT4, 37, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 131},
1781 {
"f_2[1]", {
"f_2",
D3DXRS_FLOAT4, 38, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 135},
1782 {
"i", {
"i",
D3DXRS_FLOAT4, 47, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 144},
1783 {
"i[0]", {
"i",
D3DXRS_FLOAT4, 47, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 144},
1784 {
"p", {
"p",
D3DXRS_FLOAT4, 0, 18,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 10, 2, 4, 80,
NULL}, 176},
1785 {
"p[0]", {
"p",
D3DXRS_FLOAT4, 0, 9,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 10, 1, 4, 40,
NULL}, 176},
1786 {
"p[0].i1", {
"i1",
D3DXRS_FLOAT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 176},
1787 {
"p[0].i2", {
"i2",
D3DXRS_FLOAT4, 1, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 180},
1788 {
"p[0].f_2", {
"f_2",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 2, 1, 0, 8,
NULL}, 184},
1789 {
"p[0].r", {
"r",
D3DXRS_FLOAT4, 3, 6,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 1, 2, 0, 24,
NULL}, 188},
1790 {
"p[0].r[0]", {
"r",
D3DXRS_FLOAT4, 3, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 1, 1, 0, 12,
NULL}, 188},
1791 {
"p[0].r[1]", {
"r",
D3DXRS_FLOAT4, 6, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 1, 1, 0, 12,
NULL}, 200},
1792 {
"p[1]", {
"p",
D3DXRS_FLOAT4, 9, 9,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 10, 1, 4, 40,
NULL}, 212},
1793 {
"p[1].i1", {
"i1",
D3DXRS_FLOAT4, 9, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 212},
1794 {
"p[1].i2", {
"i2",
D3DXRS_FLOAT4, 10, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 216},
1795 {
"p[1].f_2", {
"f_2",
D3DXRS_FLOAT4, 11, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 2, 1, 0, 8,
NULL}, 220},
1796 {
"p[1].r", {
"r",
D3DXRS_FLOAT4, 12, 6,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 1, 2, 0, 24,
NULL}, 224},
1797 {
"p[1].r[0]", {
"r",
D3DXRS_FLOAT4, 12, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 1, 1, 0, 12,
NULL}, 224},
1798 {
"p[1].r[1]", {
"r",
D3DXRS_FLOAT4, 15, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 1, 1, 0, 12,
NULL}, 236},
1799 {
"r13", {
"r13",
D3DXRS_FLOAT4, 43, 2,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 1, 3, 2, 0, 24,
NULL}, 253},
1800 {
"r13[0]", {
"r13",
D3DXRS_FLOAT4, 43, 1,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 253},
1801 {
"r13[1]", {
"r13",
D3DXRS_FLOAT4, 44, 1,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 257},
1802 {
"r31", {
"r31",
D3DXRS_FLOAT4, 18, 6,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 1, 2, 0, 24,
NULL}, 266},
1803 {
"r31[0]", {
"r31",
D3DXRS_FLOAT4, 18, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 1, 1, 0, 12,
NULL}, 266},
1804 {
"r31[1]", {
"r31",
D3DXRS_FLOAT4, 21, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 1, 1, 0, 12,
NULL}, 278},
1805 {
"s", {
"s",
D3DXRS_FLOAT4, 46, 1,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 2, 1, 2, 8,
NULL}, 303},
1806 {
"s.f", {
"f",
D3DXRS_FLOAT4, 46, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 303},
1807 {
"s.i", {
"i",
D3DXRS_FLOAT4, 47, 0,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 307},
1808 {
"s_2", {
"s_2",
D3DXRS_FLOAT4, 39, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 2, 2, 2, 16,
NULL}, 316},
1809 {
"s_2[0]", {
"s_2",
D3DXRS_FLOAT4, 39, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 2, 1, 2, 8,
NULL}, 316},
1810 {
"s_2[0].f", {
"f",
D3DXRS_FLOAT4, 39, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 316},
1811 {
"s_2[0].i", {
"i",
D3DXRS_FLOAT4, 40, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 320},
1812 {
"s_2[1]", {
"s_2",
D3DXRS_FLOAT4, 41, 0,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 2, 1, 2, 8,
NULL}, 324},
1813 {
"s_2[1].f", {
"f",
D3DXRS_FLOAT4, 41, 0,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 324},
1814 {
"s_2[1].i", {
"i",
D3DXRS_FLOAT4, 41, 0,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 328},
1815 {
"s_3", {
"s_3",
D3DXRS_FLOAT4, 24, 5,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 2, 3, 2, 24,
NULL}, 337},
1816 {
"s_3[0]", {
"s_3",
D3DXRS_FLOAT4, 24, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 2, 1, 2, 8,
NULL}, 337},
1817 {
"s_3[0].f", {
"f",
D3DXRS_FLOAT4, 24, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 337},
1818 {
"s_3[0].i", {
"i",
D3DXRS_FLOAT4, 25, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 341},
1819 {
"s_3[1]", {
"s_3",
D3DXRS_FLOAT4, 26, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 2, 1, 2, 8,
NULL}, 345},
1820 {
"s_3[1].f", {
"f",
D3DXRS_FLOAT4, 26, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 345},
1821 {
"s_3[1].i", {
"i",
D3DXRS_FLOAT4, 27, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 349},
1822 {
"s_3[2]", {
"s_3",
D3DXRS_FLOAT4, 28, 1,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 2, 1, 2, 8,
NULL}, 353},
1823 {
"s_3[2].f", {
"f",
D3DXRS_FLOAT4, 28, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 353},
1824 {
"s_3[2].i", {
"i",
D3DXRS_FLOAT4, 29, 0,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 357},
1825 {
"v", {
"v",
D3DXRS_FLOAT4, 41, 2,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 2, 0, 24,
NULL}, 366},
1826 {
"v[0]", {
"v",
D3DXRS_FLOAT4, 41, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 366},
1827 {
"v[1]", {
"v",
D3DXRS_FLOAT4, 42, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 370},
1832 ID3DXConstantTable *
ctable;
1842 ok(
hr ==
D3D_OK,
"D3DXGetShaderConstantTable failed, got %08x, expected %08x\n",
hr,
D3D_OK);
1859 ok(!
strcmp(expected_desc->
Name,
desc.Name),
"GetConstantDesc \"%s\" failed, got \"%s\", expected \"%s\"\n",
1861 ok(expected_desc->
RegisterSet ==
desc.RegisterSet,
"GetConstantDesc \"%s\" failed, got %#x, expected %#x\n",
1863 ok(expected_desc->
RegisterIndex ==
desc.RegisterIndex,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
1865 ok(expected_desc->
RegisterCount ==
desc.RegisterCount,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
1867 ok(expected_desc->
Class ==
desc.Class,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
1869 ok(expected_desc->
Type ==
desc.Type,
"GetConstantDesc \"%s\" failed, got %#x, expected %#x\n",
1871 ok(expected_desc->
Rows ==
desc.Rows,
"GetConstantDesc \"%s\" failed, got %#x, expected %#x\n",
1873 ok(expected_desc->
Columns ==
desc.Columns,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
1875 ok(expected_desc->
Elements ==
desc.Elements,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
1877 ok(expected_desc->
StructMembers ==
desc.StructMembers,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
1879 ok(expected_desc->
Bytes ==
desc.Bytes,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
1881 ok(
ctaboffset == (
DWORD *)
desc.DefaultValue - ctab,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
1961 ok(
count == 0,
"Release failed, got %u, expected %u\n",
count, 0);
1964#define REGISTER_OUTPUT_SIZE 48
1990 {0x40000123, 0x00000000, 0x40800123, 0x40a00123,
1991 0x40c00123, 0x40e00123, 0x41000123, 0x41100123,
1992 0x41200123, 0x41300123, 0x41400123, 0x41500123,
1993 0x41600123, 0x41700123, 0x41800123, 0x41900123,
1994 0x41a00123, 0x41b00123, 0x41c00123, 0x41d00123,
1995 0x00000000, 0x41f00123, 0x42000123, 0x42100123,
1996 0x00000000, 0x42300123, 0x42400123, 0x42500123,
1997 0x42600123, 0x42700123, 0x42800123, 0x42900123,
1998 0x43000123, 0x43100123, 0x43200123, 0x43300123,
1999 0x43400123, 0x43500123, 0x43600123, 0x43700123,
2000 0x43800123, 0x43900123, 0x43a00123, 0x43b00123,
2001 0x43c00123, 0x43d00123, 0x43e00123, 0x43f00123},
2003 {0x00000002, 0x00000003, 0x00000004, 0x00000005,
2004 0x00000000, 0x00000007, 0x00000008, 0x00000009,
2005 0x0000000a, 0x0000000b, 0x0000000c, 0x0000000d,
2006 0x0000000e, 0x0000000f, 0x00000010, 0x00000011,
2007 0x00000012, 0x00000000, 0x00000000, 0x00000015,
2008 0x00000016, 0x00000017, 0x00000018, 0x00000019,
2009 0x0000001a, 0x0000001b, 0x0000001c, 0x0000001d,
2010 0x0000001e, 0x0000001f, 0x00000020, 0x00000021,
2011 0x00000022, 0x00000023, 0x00000024, 0x00000025,
2012 0x00000026, 0x00000027, 0x00000028, 0x00000029,
2013 0x0000002a, 0x0000002b, 0x0000002c, 0x0000002d,
2014 0x0000002e, 0x0000002f, 0x00000030, 0x00000031},
2030 if (
b)
for (
i = 0;
i <
n;
i++) tmp.x +=
pos.z *
f * nf;
2031 else for (
i = 0;
i <
n;
i++) tmp.y +=
pos.y *
f * bf;
20370xfffe0300, 0x0051fffe, 0x42415443, 0x0000001c, 0x0000010f, 0xfffe0300, 0x00000005, 0x0000001c,
20380x00000100, 0x00000108, 0x00000080, 0x00000000, 0x00000001, 0x00000084, 0x00000094, 0x00000098,
20390x00020002, 0x00000001, 0x00000084, 0x0000009c, 0x000000ac, 0x00000002, 0x00000001, 0x000000b0,
20400x000000c0, 0x000000d0, 0x00000001, 0x00000001, 0x000000d4, 0x000000e4, 0x000000f4, 0x00010002,
20410x00000001, 0x000000d4, 0x000000f8, 0xabab0062, 0x00010000, 0x00010001, 0x00000001, 0x00000000,
20420xffffffff, 0xab006662, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0xabab0066, 0x00030000,
20430x00010001, 0x00000001, 0x00000000, 0x40a33333, 0x00000000, 0x00000000, 0x00000000, 0xabab006e,
20440x00020000, 0x00010001, 0x00000001, 0x00000000, 0x00000008, 0x00000000, 0x00000001, 0x00000000,
20450xab00666e, 0x41300000, 0x00000000, 0x00000000, 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369,
20460x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072,
20470x392e3932, 0x332e3235, 0x00313131, 0x05000051, 0xa00f0003, 0x00000000, 0x00000000, 0x00000000,
20480x00000000, 0x0200001f, 0x80000000, 0x900f0000, 0x0200001f, 0x80000000, 0xe00f0000, 0x01000028,
20490xe0e40800, 0x03000005, 0x80010000, 0xa0000000, 0x90aa0000, 0x02000001, 0x80010001, 0xa0000003,
20500x01000026, 0xf0e40000, 0x04000004, 0x80010001, 0x80000000, 0xa0000001, 0x80000001, 0x00000027,
20510x02000001, 0x80020001, 0xa0000003, 0x0000002a, 0x03000005, 0x80010000, 0xa0000000, 0x90550000,
20520x02000001, 0x80020001, 0xa0000003, 0x01000026, 0xf0e40000, 0x04000004, 0x80020001, 0x80000000,
20530xa0000002, 0x80550001, 0x00000027, 0x02000001, 0x80010001, 0xa0000003, 0x0000002b, 0x02000001,
20540xe0030000, 0x80e40001, 0x02000001, 0xe00c0000, 0xa0000003, 0x0000ffff,
2059 {
"f", {
"f",
D3DXRS_FLOAT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 48},
2064 {
SetFloat, 0, 0, 0, 4, {0x40000123}},
2065 {
SetInt, 1, 0, 0, 4, {0x40000000}},
2066 {
SetBool, 1, 0, 0, 4, {0x3f800000}},
2092 {
"n", {
"n",
D3DXRS_INT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 57},
2098 {0x00000002, 0x00000000, 0x00000001}},
2100 {0x00000002, 0x00000000, 0x00000001}},
2102 {0x00000001, 0x00000000, 0x00000001}},
2105 {0x00000002, 0x00000000, 0x00000001}},
2108 {0x00000001, 0x00000000, 0x00000001}},
2111 {0x00000002, 0x00000000, 0x00000001}},
2114 {0x00000002, 0x00000000, 0x00000001}},
2116 {0x00000002, 0x00000000, 0x00000001},},
2119 {0x00000002, 0x00000000, 0x00000001}},
2121 {0x00000002, 0x00000000, 0x00000001}},
2124 {0x00000002, 0x00000000, 0x00000001}},
2126 {0x00000002, 0x00000000, 0x00000001}},
2129 {0x00000002, 0x00000000, 0x00000001}},
2132 {0x00000002, 0x00000000, 0x00000001}},
2135 {0x00000002, 0x00000000, 0x00000001}},
2140 {
"nf", {
"nf",
D3DXRS_FLOAT4, 1, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 62},
2145 {
SetFloat, 0, 0, 0, 4, {0x40000000}},
2146 {
SetInt, 1, 0, 0, 4, {0x40000000}},
2147 {
SetBool, 1, 0, 0, 4, {0x3f800000}},
2173 {
"bf", {
"bf",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 39},
2178 {
SetFloat, 0, 0, 0, 4, {0x3f800000}},
2179 {
SetInt, 1, 0, 0, 4, {0x3f800000}},
2180 {
SetBool, 1, 0, 0, 4, {0x3f800000}},
2206 {
"b", {
"b",
D3DXRS_BOOL, 0, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 37},
2211 {
SetFloat, 0, 0, 0, 1, {0x00000001}},
2212 {
SetInt, 1, 0, 0, 1, {0x00000001}},
2213 {
SetBool, 1, 0, 0, 1, {0x00000002}},
2242int an[2] = {32, 33};
2243float af[2] = {3.1, 3.2};
2244int anf[2] = {14, 15};
2245bool abf[2] = {1, 1};
2250 if (
ab[1])
for (
i = 0;
i < an[1];
i++) tmp.x +=
pos.z * af[0] * anf[1];
2251 else for (
i = 0;
i < an[0];
i++) tmp.y +=
pos.y * af[1] * abf[1];
22570xfffe0300, 0x006afffe, 0x42415443, 0x0000001c, 0x00000173, 0xfffe0300, 0x00000005, 0x0000001c,
22580x00000100, 0x0000016c, 0x00000080, 0x00000000, 0x00000002, 0x00000084, 0x00000094, 0x0000009c,
22590x00040002, 0x00000002, 0x000000a0, 0x000000b0, 0x000000d0, 0x00000002, 0x00000002, 0x000000d4,
22600x000000e4, 0x00000104, 0x00000001, 0x00000002, 0x00000108, 0x00000118, 0x00000138, 0x00020002,
22610x00000002, 0x0000013c, 0x0000014c, 0xab006261, 0x00010000, 0x00010001, 0x00000002, 0x00000000,
22620xffffffff, 0x00000000, 0x00666261, 0x00010000, 0x00010001, 0x00000002, 0x00000000, 0x3f800000,
22630x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0xab006661,
22640x00030000, 0x00010001, 0x00000002, 0x00000000, 0x40466666, 0x00000000, 0x00000000, 0x00000000,
22650x404ccccd, 0x00000000, 0x00000000, 0x00000000, 0xab006e61, 0x00020000, 0x00010001, 0x00000002,
22660x00000000, 0x00000020, 0x00000000, 0x00000001, 0x00000000, 0x00000021, 0x00000000, 0x00000001,
22670x00000000, 0x00666e61, 0x00020000, 0x00010001, 0x00000002, 0x00000000, 0x41600000, 0x00000000,
22680x00000000, 0x00000000, 0x41700000, 0x00000000, 0x00000000, 0x00000000, 0x335f7376, 0x4d00305f,
22690x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970,
22700x2e392072, 0x392e3932, 0x332e3235, 0x00313131, 0x05000051, 0xa00f0006, 0x00000000, 0x00000000,
22710x00000000, 0x00000000, 0x0200001f, 0x80000000, 0x900f0000, 0x0200001f, 0x80000000, 0xe00f0000,
22720x01000028, 0xe0e40801, 0x03000005, 0x80010000, 0xa0000000, 0x90aa0000, 0x02000001, 0x80010001,
22730xa0000006, 0x01000026, 0xf0e40001, 0x04000004, 0x80010001, 0x80000000, 0xa0000003, 0x80000001,
22740x00000027, 0x02000001, 0x80020001, 0xa0000006, 0x0000002a, 0x03000005, 0x80010000, 0xa0000001,
22750x90550000, 0x02000001, 0x80020001, 0xa0000006, 0x01000026, 0xf0e40000, 0x04000004, 0x80020001,
22760x80000000, 0xa0000005, 0x80550001, 0x00000027, 0x02000001, 0x80010001, 0xa0000006, 0x0000002b,
22770x02000001, 0xe0030000, 0x80e40001, 0x02000001, 0xe00c0000, 0xa0000006, 0x0000ffff,
2282 {
"af", {
"af",
D3DXRS_FLOAT4, 0, 2,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 2, 0, 8,
NULL}, 57},
2283 {
"af[0]", {
"af",
D3DXRS_FLOAT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 57},
2284 {
"af[1]", {
"af",
D3DXRS_FLOAT4, 1, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 61},
2289 {
SetFloat, 0, 0, 0, 4, {0x40000123}},
2290 {
SetInt, 1, 0, 0, 4, {0x40000000}},
2291 {
SetBool, 1, 0, 0, 4, {0x3f800000}},
2295 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000}},
2299 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000}},
2303 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2305 {
SetValue, 0, 4, 7, 4, {0x40000123}},
2307 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2309 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2312 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2314 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2317 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2319 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123}},
2322 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123}},
2325 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2328 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123}},
2333 {
"an", {
"an",
D3DXRS_INT4, 0, 2,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 2, 0, 8,
NULL}, 70},
2334 {
"an[0]", {
"an",
D3DXRS_INT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 70},
2335 {
"an[1]", {
"an",
D3DXRS_INT4, 1, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 74},
2340 {
SetFloat, 0, 0, 0, 4, {0x00000002, 0x00000000, 0x00000001}},
2341 {
SetInt, 1, 0, 0, 4, {0x00000002, 0x00000000, 0x00000001}},
2342 {
SetBool, 1, 0, 0, 4, {0x00000001, 0x00000000, 0x00000001}},
2344 {
SetIntArray, 1, 1, 1, 4, {0x00000002, 0x00000000, 0x00000001}},
2346 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000003, 0x00000000, 0x00000001}},
2348 {
SetBoolArray, 1, 1, 1, 4, {0x00000001, 0x00000000, 0x00000001}},
2350 {0x00000001, 0x00000000, 0x00000001, 0x00000000, 0x00000001, 0x00000000, 0x00000001}},
2352 {
SetFloatArray, 0, 1, 1, 4, {0x00000002, 0x00000000, 0x00000001}},
2354 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001}},
2356 {
SetValue, 1, 4, 7, 4, {0x00000002, 0x00000000, 0x00000001}},
2358 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000003, 0x00000000, 0x00000001}},
2360 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001}},
2363 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001}},
2365 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001}},
2368 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001}},
2370 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000000, 0x00000001}},
2373 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000000, 0x00000001}},
2376 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001}},
2379 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000000, 0x00000001}},
2384 {
"ab", {
"ab",
D3DXRS_BOOL, 0, 2,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 2, 0, 8,
NULL}, 37},
2385 {
"ab[0]", {
"ab",
D3DXRS_BOOL, 0, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 37},
2386 {
"ab[1]", {
"ab",
D3DXRS_BOOL, 1, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 38},
2391 {
SetFloat, 0, 0, 0, 1, {0x00000001}},
2392 {
SetInt, 1, 0, 0, 1, {0x00000001}},
2393 {
SetBool, 1, 0, 0, 1, {0x00000002}},
2404 {
SetValue, 1, 4, 7, 1, {0x00000002}},
2406 {
SetVector, 0, 0, 0, 2, {0x00000001, 0x00000000}},
2409 {
SetMatrix, 0, 0, 0, 2, {0x00000001, 0x00000000}},
2423 {
"abf", {
"abf",
D3DXRS_FLOAT4, 4, 2,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 2, 0, 8,
NULL}, 44},
2424 {
"abf[0]", {
"abf",
D3DXRS_FLOAT4, 4, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 44},
2425 {
"abf[1]", {
"abf",
D3DXRS_FLOAT4, 5, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 48},
2430 {
SetFloat, 0, 0, 0, 4, {0x3f800000}},
2431 {
SetInt, 1, 0, 0, 4, {0x3f800000}},
2432 {
SetBool, 1, 0, 0, 4, {0x3f800000}},
2436 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000}},
2440 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000}},
2444 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2446 {
SetValue, 1, 4, 7, 4, {0x3f800000}},
2448 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000}},
2450 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2453 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2455 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2458 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2460 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000}},
2463 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000}},
2466 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2469 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000}},
2474 {
"anf", {
"anf",
D3DXRS_FLOAT4, 2, 2,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 2, 0, 8,
NULL}, 83},
2475 {
"anf[0]", {
"anf",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 83},
2476 {
"anf[1]", {
"anf",
D3DXRS_FLOAT4, 3, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 87},
2481 {
SetFloat, 0, 0, 0, 4, {0x40000000}},
2482 {
SetInt, 1, 0, 0, 4, {0x40000000}},
2483 {
SetBool, 1, 0, 0, 4, {0x3f800000}},
2487 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000}},
2491 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000}},
2495 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2497 {
SetValue, 1, 4, 7, 4, {0x40000000}},
2499 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000}},
2501 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2504 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2506 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2509 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2511 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000}},
2514 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000}},
2517 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
2520 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000}},
2527bool3 vb = {1, 0, 1};
2529float3 vf = {5.1, 5.2, 5.3};
2530int3 vnf = {11, 85, 62};
2531bool3 vbf = {1, 1, 1};
2536 if (vb.z)
for (
i = 0;
i <
vn.z;
i++) tmp.x +=
pos.z * vf.z * vnf.z;
2537 else for (
i = 0;
i <
vn.y;
i++) tmp.y +=
pos.y * vf.y * vbf.z;
25430xfffe0300, 0x0053fffe, 0x42415443, 0x0000001c, 0x00000117, 0xfffe0300, 0x00000005, 0x0000001c,
25440x00000100, 0x00000110, 0x00000080, 0x00000000, 0x00000003, 0x00000084, 0x00000094, 0x000000a0,
25450x00020002, 0x00000001, 0x00000084, 0x000000a4, 0x000000b4, 0x00000002, 0x00000001, 0x000000b8,
25460x000000c8, 0x000000d8, 0x00000001, 0x00000003, 0x000000dc, 0x000000ec, 0x000000fc, 0x00010002,
25470x00000001, 0x000000dc, 0x00000100, 0xab006276, 0x00010001, 0x00030001, 0x00000001, 0x00000000,
25480xffffffff, 0x00000000, 0xffffffff, 0x00666276, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
25490xab006676, 0x00030001, 0x00030001, 0x00000001, 0x00000000, 0x40a33333, 0x40a66666, 0x40a9999a,
25500x00000000, 0xab006e76, 0x00020001, 0x00030001, 0x00000001, 0x00000000, 0x00000007, 0x00000008,
25510x00000009, 0x00000000, 0x00666e76, 0x41300000, 0x42aa0000, 0x42780000, 0x00000000, 0x335f7376,
25520x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320,
25530x656c6970, 0x2e392072, 0x392e3932, 0x332e3235, 0x00313131, 0x05000051, 0xa00f0003, 0x00000000,
25540x00000000, 0x00000000, 0x00000000, 0x0200001f, 0x80000000, 0x900f0000, 0x0200001f, 0x80000000,
25550xe00f0000, 0x01000028, 0xe0e40802, 0x03000005, 0x80010000, 0xa0aa0000, 0x90aa0000, 0x02000001,
25560x80010001, 0xa0000003, 0x01000026, 0xf0e40002, 0x04000004, 0x80010001, 0x80000000, 0xa0aa0001,
25570x80000001, 0x00000027, 0x02000001, 0x80020001, 0xa0000003, 0x0000002a, 0x03000005, 0x80010000,
25580xa0550000, 0x90550000, 0x02000001, 0x80020001, 0xa0000003, 0x01000026, 0xf0e40001, 0x04000004,
25590x80020001, 0x80000000, 0xa0aa0002, 0x80550001, 0x00000027, 0x02000001, 0x80010001, 0xa0000003,
25600x0000002b, 0x02000001, 0xe0030000, 0x80e40001, 0x02000001, 0xe00c0000, 0xa0000003, 0x0000ffff,
2565 {
"vf", {
"vf",
D3DXRS_FLOAT4, 0, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 50},
2581 {
SetVector, 0, 0, 0, 4, {0x40000123, 0x00000000, 0x40800123}},
2584 {
SetMatrix, 0, 0, 0, 4, {0x40000123, 0x00000000, 0x40800123}},
2598 {
"vn", {
"vn",
D3DXRS_INT4, 0, 3,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 59},
2614 {
SetVector, 0, 0, 0, 4, {0x00000002, 0x00000000, 0x00000004}},
2617 {
SetMatrix, 0, 0, 0, 4, {0x00000002, 0x00000000, 0x00000004}},
2631 {
"vb", {
"vb",
D3DXRS_BOOL, 0, 3,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 37},
2647 {
SetVector, 0, 0, 0, 3, {0x00000001, 0x00000000, 0x00000001}},
2650 {
SetMatrix, 0, 0, 0, 3, {0x00000001, 0x00000000, 0x00000001}},
2664 {
"vbf", {
"vbf",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 41},
2680 {
SetVector, 0, 0, 0, 4, {0x3f800000, 0x00000000, 0x3f800000}},
2683 {
SetMatrix, 0, 0, 0, 4, {0x3f800000, 0x00000000, 0x3f800000}},
2697 {
"vnf", {
"vnf",
D3DXRS_FLOAT4, 1, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 64},
2713 {
SetVector, 0, 0, 0, 4, {0x40000000, 0x00000000, 0x40800000}},
2716 {
SetMatrix, 0, 0, 0, 4, {0x40000000, 0x00000000, 0x40800000}},
2732bool3 vab[2] = {1, 0, 1, 1, 0, 1};
2733int3 van[2] = {70, 80, 90, 100, 110, 120};
2734float3 vaf[2] = {55.1, 55.2, 55.3, 55.4, 55.5, 55.6};
2735int3 vanf[2] = {130, 140, 150, 160, 170, 180};
2736bool3 vabf[2] = {1, 1, 1, 1, 1, 1};
2741 if (vab[1].
z)
for (
i = 0;
i < van[1].z;
i++) tmp.x +=
pos.z * vaf[1].z * vanf[1].z;
2742 else for (
i = 0;
i < van[1].y;
i++) tmp.y +=
pos.y * vaf[0].y * vabf[1].z;
27480xfffe0300, 0x0070fffe, 0x42415443, 0x0000001c, 0x0000018b, 0xfffe0300, 0x00000005, 0x0000001c,
27490x00000100, 0x00000184, 0x00000080, 0x00000000, 0x00000006, 0x00000084, 0x00000094, 0x000000ac,
27500x00040002, 0x00000002, 0x000000b4, 0x000000c4, 0x000000e4, 0x00000002, 0x00000002, 0x000000e8,
27510x000000f8, 0x00000118, 0x00000001, 0x00000006, 0x0000011c, 0x0000012c, 0x0000014c, 0x00020002,
27520x00000002, 0x00000154, 0x00000164, 0x00626176, 0x00010001, 0x00030001, 0x00000002, 0x00000000,
27530xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0x66626176, 0xababab00,
27540x00010001, 0x00030001, 0x00000002, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
27550x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00666176, 0x00030001, 0x00030001, 0x00000002,
27560x00000000, 0x425c6666, 0x425ccccd, 0x425d3333, 0x00000000, 0x425d999a, 0x425e0000, 0x425e6666,
27570x00000000, 0x006e6176, 0x00020001, 0x00030001, 0x00000002, 0x00000000, 0x00000046, 0x00000050,
27580x0000005a, 0x00000000, 0x00000064, 0x0000006e, 0x00000078, 0x00000000, 0x666e6176, 0xababab00,
27590x00020001, 0x00030001, 0x00000002, 0x00000000, 0x43020000, 0x430c0000, 0x43160000, 0x00000000,
27600x43200000, 0x432a0000, 0x43340000, 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73,
27610x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932,
27620x332e3235, 0x00313131, 0x05000051, 0xa00f0006, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
27630x0200001f, 0x80000000, 0x900f0000, 0x0200001f, 0x80000000, 0xe00f0000, 0x01000028, 0xe0e40805,
27640x03000005, 0x80010000, 0xa0aa0001, 0x90aa0000, 0x02000001, 0x80010001, 0xa0000006, 0x01000026,
27650xf0e40005, 0x04000004, 0x80010001, 0x80000000, 0xa0aa0003, 0x80000001, 0x00000027, 0x02000001,
27660x80020001, 0xa0000006, 0x0000002a, 0x03000005, 0x80010000, 0xa0550000, 0x90550000, 0x02000001,
27670x80020001, 0xa0000006, 0x01000026, 0xf0e40004, 0x04000004, 0x80020001, 0x80000000, 0xa0aa0005,
27680x80550001, 0x00000027, 0x02000001, 0x80010001, 0xa0000006, 0x0000002b, 0x02000001, 0xe0030000,
27690x80e40001, 0x02000001, 0xe00c0000, 0xa0000006, 0x0000ffff,
2774 {
"vaf", {
"vaf",
D3DXRS_FLOAT4, 0, 2,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 2, 0, 24,
NULL}, 62},
2775 {
"vaf[0]", {
"vaf",
D3DXRS_FLOAT4, 0, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 62},
2776 {
"vaf[1]", {
"vaf",
D3DXRS_FLOAT4, 1, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 66},
2785 {
SetIntArray, 1, 3, 5, 4, {0x40000000, 0x40400000, 0x40800000}},
2787 {0x40000000, 0x40400000, 0x40800000, 0x00000000, 0x40a00000, 0x00000000, 0x40e00000}},
2789 {
SetBoolArray, 1, 3, 5, 4, {0x3f800000, 0x3f800000, 0x3f800000}},
2791 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000}},
2793 {
SetFloatArray, 0, 3, 5, 4, {0x40000123, 0x00000000, 0x40800123}},
2795 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40a00123, 0x40c00123, 0x40e00123}},
2797 {
SetValue, 0, 12, 23, 4, {0x40000123, 0x00000000, 0x40800123}},
2799 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40a00123, 0x40c00123, 0x40e00123}},
2800 {
SetVector, 0, 0, 0, 4, {0x40000123, 0x00000000, 0x40800123}},
2802 {
SetVectorArray, 0, 1, 1, 4, {0x40000123, 0x00000000, 0x40800123}},
2804 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123}},
2806 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123}},
2809 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123}},
2811 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
2814 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
2817 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123}},
2820 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
2825 {
"van", {
"van",
D3DXRS_INT4, 0, 6,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 2, 0, 24,
NULL}, 75},
2826 {
"van[0]", {
"van",
D3DXRS_INT4, 0, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 75},
2827 {
"van[1]", {
"van",
D3DXRS_INT4, 1, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 79},
2836 {
SetIntArray, 1, 3, 5, 4, {0x00000002, 0x00000003, 0x00000004}},
2838 {0x00000002, 0x00000003, 0x00000004, 0x00000000, 0x00000005, 0x00000000, 0x00000007}},
2840 {
SetBoolArray, 1, 3, 5, 4, {0x00000001, 0x00000001, 0x00000001}},
2842 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000000, 0x00000001}},
2844 {
SetFloatArray, 0, 3, 5, 4, {0x00000002, 0x00000000, 0x00000004}},
2846 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000005, 0x00000006, 0x00000007}},
2848 {
SetValue, 1, 12, 23, 4, {0x00000002, 0x00000003, 0x00000004}},
2850 {0x00000002, 0x00000003, 0x00000004, 0x00000000, 0x00000005, 0x00000000, 0x00000007}},
2851 {
SetVector, 0, 0, 0, 4, {0x00000002, 0x00000000, 0x00000004}},
2853 {
SetVectorArray, 0, 1, 1, 4, {0x00000002, 0x00000000, 0x00000004}},
2855 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008}},
2857 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008}},
2860 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008}},
2862 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
2865 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
2868 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008}},
2871 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
2876 {
"vab", {
"vab",
D3DXRS_BOOL, 0, 6,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 2, 0, 24,
NULL}, 37},
2877 {
"vab[0]", {
"vab",
D3DXRS_BOOL, 0, 3,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 37},
2878 {
"vab[1]", {
"vab",
D3DXRS_BOOL, 3, 3,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 40},
2887 {
SetIntArray, 1, 3, 5, 3, {0x00000001, 0x00000001, 0x00000001}},
2889 {0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001}},
2891 {
SetBoolArray, 1, 3, 5, 3, {0x00000002, 0x00000003, 0x00000004}},
2893 {0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000000, 0x00000007}},
2895 {
SetFloatArray, 0, 3, 5, 3, {0x00000001, 0x00000000, 0x00000001}},
2897 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
2899 {
SetValue, 1, 12, 23, 3, {0x00000002, 0x00000003, 0x00000004}},
2901 {0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000000, 0x00000007}},
2902 {
SetVector, 0, 0, 0, 3, {0x00000001, 0x00000000, 0x00000001}},
2904 {
SetVectorArray, 0, 1, 1, 3, {0x00000001, 0x00000000, 0x00000001}},
2906 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
2908 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
2911 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
2913 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
2916 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
2919 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
2922 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
2927 {
"vabf", {
"vabf",
D3DXRS_FLOAT4, 4, 2,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 2, 0, 24,
NULL}, 49},
2928 {
"vabf[0]", {
"vabf",
D3DXRS_FLOAT4, 4, 1,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 49},
2929 {
"vabf[1]", {
"vabf",
D3DXRS_FLOAT4, 5, 1,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 53},
2938 {
SetIntArray, 1, 3, 5, 4, {0x3f800000, 0x3f800000, 0x3f800000}},
2940 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000}},
2942 {
SetBoolArray, 1, 3, 5, 4, {0x3f800000, 0x3f800000, 0x3f800000}},
2944 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000}},
2946 {
SetFloatArray, 0, 3, 5, 4, {0x3f800000, 0x00000000, 0x3f800000}},
2948 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
2950 {
SetValue, 1, 12, 23, 4, {0x3f800000, 0x3f800000, 0x3f800000}},
2952 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000}},
2953 {
SetVector, 0, 0, 0, 4, {0x3f800000, 0x00000000, 0x3f800000},},
2955 {
SetVectorArray, 0, 1, 1, 4, {0x3f800000, 0x00000000, 0x3f800000}},
2957 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
2959 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
2962 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
2964 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
2967 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
2970 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
2973 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
2978 {
"vanf", {
"vanf",
D3DXRS_FLOAT4, 2, 2,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 2, 0, 24,
NULL}, 89},
2979 {
"vanf[0]", {
"vanf",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 89},
2980 {
"vanf[1]", {
"vanf",
D3DXRS_FLOAT4, 3, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 93},
2989 {
SetIntArray, 1, 3, 5, 4, {0x40000000, 0x40400000, 0x40800000}},
2991 {0x40000000, 0x40400000, 0x40800000, 0x00000000, 0x40a00000, 0x00000000, 0x40e00000}},
2993 {
SetBoolArray, 1, 3, 5, 4, {0x3f800000, 0x3f800000, 0x3f800000}},
2995 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000}},
2997 {
SetFloatArray, 0, 3, 5, 4, {0x40000000, 0x00000000, 0x40800000}},
2999 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40a00000, 0x40c00000, 0x40e00000}},
3001 {
SetValue, 1, 12, 23, 4, {0x40000000, 0x40400000, 0x40800000}},
3003 {0x40000000, 0x40400000, 0x40800000, 0x00000000, 0x40a00000, 0x00000000, 0x40e00000}},
3004 {
SetVector, 0, 0, 0, 4, {0x40000000, 0x00000000, 0x40800000}},
3006 {
SetVectorArray, 0, 1, 1, 4, {0x40000000, 0x00000000, 0x40800000}},
3008 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000}},
3010 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000}},
3013 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000}},
3015 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3018 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3021 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000}},
3024 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3031bool3x2
cb = {1, 0, 1, 1, 0, 1};
3032int3x2
cn = {4, 5, 6, 7, 8, 9};
3033float3x2
cf = {15.1, 15.2, 15.3, 15.4, 15.5, 15.6};
3034bool3x2 cbf = {1, 1, 0, 1, 0, 1};
3035int3x2 cnf = {30, 31, 33, 32, 34, 36};
3040 if (
cb._32)
for (
i = 0;
i <
cn._31;
i++) tmp.x +=
pos.z *
cf._31 * cbf._32;
3041 else for (
i = 0;
i <
cn._32;
i++) tmp.y +=
pos.y *
cf._32 * cnf._32;
30470xfffe0300, 0x0066fffe, 0x42415443, 0x0000001c, 0x00000163, 0xfffe0300, 0x00000005, 0x0000001c,
30480x00000100, 0x0000015c, 0x00000080, 0x00000000, 0x00000006, 0x00000084, 0x00000094, 0x000000ac,
30490x00020002, 0x00000002, 0x00000084, 0x000000b0, 0x000000d0, 0x00000002, 0x00000002, 0x000000d4,
30500x000000e4, 0x00000104, 0x00000001, 0x00000006, 0x00000108, 0x00000118, 0x00000138, 0x00040002,
30510x00000002, 0x00000108, 0x0000013c, 0xab006263, 0x00010003, 0x00020003, 0x00000001, 0x00000000,
30520xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0x00666263, 0x3f800000,
30530x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0xab006663,
30540x00030003, 0x00020003, 0x00000001, 0x00000000, 0x4171999a, 0x4174cccd, 0x41780000, 0x00000000,
30550x41733333, 0x41766666, 0x4179999a, 0x00000000, 0xab006e63, 0x00020003, 0x00020003, 0x00000001,
30560x00000000, 0x00000004, 0x00000006, 0x00000008, 0x00000000, 0x00000005, 0x00000007, 0x00000009,
30570x00000000, 0x00666e63, 0x41f00000, 0x42040000, 0x42080000, 0x00000000, 0x41f80000, 0x42000000,
30580x42100000, 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820,
30590x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932, 0x332e3235, 0x00313131,
30600x05000051, 0xa00f0006, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
30610x900f0000, 0x0200001f, 0x80000000, 0xe00f0000, 0x01000028, 0xe0e40805, 0x03000005, 0x80010000,
30620xa0aa0000, 0x90aa0000, 0x02000001, 0x80010001, 0xa0000006, 0x01000026, 0xf0e40004, 0x04000004,
30630x80010001, 0x80000000, 0xa0aa0003, 0x80000001, 0x00000027, 0x02000001, 0x80020001, 0xa0000006,
30640x0000002a, 0x03000005, 0x80010000, 0xa0aa0001, 0x90550000, 0x02000001, 0x80020001, 0xa0000006,
30650x01000026, 0xf0e40005, 0x04000004, 0x80020001, 0x80000000, 0xa0aa0005, 0x80550001, 0x00000027,
30660x02000001, 0x80010001, 0xa0000006, 0x0000002b, 0x02000001, 0xe0030000, 0x80e40001, 0x02000001,
30670xe00c0000, 0xa0000006, 0x0000ffff,
3072 {
"cf", {
"cf",
D3DXRS_FLOAT4, 0, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 3, 2, 1, 0, 24,
NULL}, 57},
3082 {0x40000000, 0x40800000, 0x00000000, 0x00000000, 0x40400000, 0x40a00000, 0x40e00000}},
3085 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3088 {0x40000123, 0x40800123, 0x40c00123, 0x00000000, 0x00000000, 0x40a00123, 0x40e00123}},
3091 {0x40000123, 0x40800123, 0x40c00123, 0x00000000, 0x00000000, 0x40a00123, 0x40e00123}},
3095 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
3097 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
3100 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
3102 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123}},
3105 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123}},
3108 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
3111 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123}},
3116 {
"cn", {
"cn",
D3DXRS_INT4, 0, 6,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 70},
3126 {0x00000002, 0x00000004, 0x00000000, 0x00000000, 0x00000003, 0x00000005, 0x00000007}},
3129 {0x00000001, 0x00000001, 0x00000000, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
3132 {0x00000002, 0x00000004, 0x00000006, 0x00000000, 0x00000000, 0x00000005, 0x00000007}},
3135 {0x00000002, 0x00000004, 0x00000000, 0x00000000, 0x00000003, 0x00000005, 0x00000007}},
3139 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
3141 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
3144 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
3146 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008}},
3149 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008}},
3152 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
3155 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008}},
3160 {
"cb", {
"cb",
D3DXRS_BOOL, 0, 6,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 37},
3170 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
3173 {0x00000002, 0x00000004, 0x00000000, 0x00000003, 0x00000005, 0x00000007}},
3176 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3179 {0x00000002, 0x00000004, 0x00000000, 0x00000003, 0x00000005, 0x00000007}},
3183 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3185 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3188 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3190 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3193 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3196 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3199 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3204 {
"cnf", {
"cnf",
D3DXRS_FLOAT4, 4, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 79},
3214 {0x40000000, 0x40800000, 0x00000000, 0x00000000, 0x40400000, 0x40a00000, 0x40e00000}},
3217 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3220 {0x40000000, 0x40800000, 0x40c00000, 0x00000000, 0x00000000, 0x40a00000, 0x40e00000}},
3223 {0x40000000, 0x40800000, 0x00000000, 0x00000000, 0x40400000, 0x40a00000, 0x40e00000}},
3228 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3230 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3233 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3235 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000}},
3238 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000}},
3241 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3244 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000}},
3249 {
"cbf", {
"cbf",
D3DXRS_FLOAT4, 2, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 44},
3259 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3262 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3265 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3268 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3272 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3274 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3277 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3279 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3282 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3285 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3288 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3295bool3x2 cab[2] = {1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1};
3296int3x2 can[2] = {14, 15, 16, 71, 18, 19, 55, 63, 96, 96, 97, 13};
3297float3x2 caf[2] = {1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 1.2, 1.3, 1.4};
3298bool3x2 cabf[2] = {1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1};
3299int3x2 canf[2] = {300, 301, 303, 302, 304, 306, 350, 365, 654, 612, 326, 999};
3304 if (cab[1]._32)
for (
i = 0;
i < can[1]._31;
i++) tmp.x +=
pos.z * caf[1]._31 * cabf[1]._32;
3305 else for (
i = 0;
i < can[1]._32;
i++) tmp.y +=
pos.y * caf[1]._32 * canf[1]._32;
33110xfffe0300, 0x0096fffe, 0x42415443, 0x0000001c, 0x00000223, 0xfffe0300, 0x00000005, 0x0000001c,
33120x00000100, 0x0000021c, 0x00000080, 0x00000000, 0x0000000c, 0x00000084, 0x00000094, 0x000000c4,
33130x00040002, 0x00000004, 0x000000cc, 0x000000dc, 0x0000011c, 0x00000002, 0x00000004, 0x00000120,
33140x00000130, 0x00000170, 0x00000001, 0x0000000c, 0x00000174, 0x00000184, 0x000001c4, 0x00080002,
33150x00000004, 0x000001cc, 0x000001dc, 0x00626163, 0x00010003, 0x00020003, 0x00000002, 0x00000000,
33160xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000,
33170xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0x66626163, 0xababab00, 0x00010003, 0x00020003,
33180x00000002, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000,
33190x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000,
33200x3f800000, 0x00000000, 0x00666163, 0x00030003, 0x00020003, 0x00000002, 0x00000000, 0x3f8ccccd,
33210x40533333, 0x40b00000, 0x00000000, 0x400ccccd, 0x408ccccd, 0x40d33333, 0x00000000, 0x40f66666,
33220x411e6666, 0x3fa66666, 0x00000000, 0x410ccccd, 0x3f99999a, 0x3fb33333, 0x00000000, 0x006e6163,
33230x00020003, 0x00020003, 0x00000002, 0x00000000, 0x0000000e, 0x00000010, 0x00000012, 0x00000000,
33240x0000000f, 0x00000047, 0x00000013, 0x00000000, 0x00000037, 0x00000060, 0x00000061, 0x00000000,
33250x0000003f, 0x00000060, 0x0000000d, 0x00000000, 0x666e6163, 0xababab00, 0x00020003, 0x00020003,
33260x00000002, 0x00000000, 0x43960000, 0x43978000, 0x43980000, 0x00000000, 0x43968000, 0x43970000,
33270x43990000, 0x00000000, 0x43af0000, 0x44238000, 0x43a30000, 0x00000000, 0x43b68000, 0x44190000,
33280x4479c000, 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820,
33290x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932, 0x332e3235, 0x00313131,
33300x05000051, 0xa00f000c, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
33310x900f0000, 0x0200001f, 0x80000000, 0xe00f0000, 0x01000028, 0xe0e4080b, 0x03000005, 0x80010000,
33320xa0aa0002, 0x90aa0000, 0x02000001, 0x80010001, 0xa000000c, 0x01000026, 0xf0e4000a, 0x04000004,
33330x80010001, 0x80000000, 0xa0aa0007, 0x80000001, 0x00000027, 0x02000001, 0x80020001, 0xa000000c,
33340x0000002a, 0x03000005, 0x80010000, 0xa0aa0003, 0x90550000, 0x02000001, 0x80020001, 0xa000000c,
33350x01000026, 0xf0e4000b, 0x04000004, 0x80020001, 0x80000000, 0xa0aa000b, 0x80550001, 0x00000027,
33360x02000001, 0x80010001, 0xa000000c, 0x0000002b, 0x02000001, 0xe0030000, 0x80e40001, 0x02000001,
33370xe00c0000, 0xa000000c, 0x0000ffff,
3342 {
"caf", {
"caf",
D3DXRS_FLOAT4, 0, 4,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 3, 2, 2, 0, 48,
NULL}, 76},
3343 {
"caf[0]", {
"caf",
D3DXRS_FLOAT4, 0, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 3, 2, 1, 0, 24,
NULL}, 76},
3344 {
"caf[1]", {
"caf",
D3DXRS_FLOAT4, 2, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 3, 2, 1, 0, 24,
NULL}, 84},
3354 {0x40000000, 0x40800000, 0x00000000, 0x00000000, 0x40400000, 0x40a00000, 0x40e00000}},
3356 {0x40000000, 0x40800000, 0x00000000, 0x00000000, 0x40400000, 0x40a00000, 0x40e00000, 0x00000000,
3357 0x41000000, 0x41200000, 0x41400000, 0x00000000, 0x41100000, 0x41300000, 0x41500000}},
3360 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3362 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
3363 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3366 {0x40000123, 0x40800123, 0x40c00123, 0x00000000, 0x00000000, 0x40a00123, 0x40e00123}},
3368 {0x40000123, 0x40800123, 0x40c00123, 0x00000000, 0x00000000, 0x40a00123, 0x40e00123, 0x00000000,
3369 0x41000123, 0x41200123, 0x41400123, 0x00000000, 0x41100123, 0x41300123, 0x41500123}},
3372 {0x40000123, 0x40800123, 0x40c00123, 0x00000000, 0x00000000, 0x40a00123, 0x40e00123}},
3374 {0x40000123, 0x40800123, 0x40c00123, 0x00000000, 0x00000000, 0x40a00123, 0x40e00123, 0x00000000,
3375 0x41000123, 0x41200123, 0x41400123, 0x00000000, 0x41100123, 0x41300123, 0x41500123}},
3379 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
3381 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123, 0x00000000,
3382 0x41600123, 0x41a00123, 0x00000000, 0x00000000, 0x41700123, 0x41b00123, 0x41f00123}},
3384 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
3387 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
3389 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123, 0x00000000,
3390 0x41a00123, 0x00000000, 0x00000000, 0x00000000, 0x41b00123, 0x41f00123, 0x42300123}},
3392 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123}},
3395 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123}},
3397 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123, 0x00000000,
3398 0x41a00123, 0x41b00123, 0x41c00123, 0x00000000, 0x00000000, 0x41f00123, 0x42000123}},
3401 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123}},
3403 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123, 0x00000000,
3404 0x41900123, 0x41d00123, 0x42100123, 0x00000000, 0x41a00123, 0x00000000, 0x00000000}},
3407 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123}},
3409 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123, 0x00000000,
3410 0x41900123, 0x41a00123, 0x41b00123, 0x00000000, 0x41d00123, 0x00000000, 0x41f00123}},
3415 {
"can", {
"can",
D3DXRS_INT4, 0, 12,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_INT, 3, 2, 2, 0, 48,
NULL}, 97},
3416 {
"can[0]", {
"can",
D3DXRS_INT4, 0, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 97},
3417 {
"can[1]", {
"can",
D3DXRS_INT4, 2, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 105},
3427 {0x00000002, 0x00000004, 0x00000000, 0x00000000, 0x00000003, 0x00000005, 0x00000007}},
3429 {0x00000002, 0x00000004, 0x00000000, 0x00000000, 0x00000003, 0x00000005, 0x00000007, 0x00000000,
3430 0x00000008, 0x0000000a, 0x0000000c, 0x00000000, 0x00000009, 0x0000000b, 0x0000000d}},
3433 {0x00000001, 0x00000001, 0x00000000, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
3435 {0x00000001, 0x00000001, 0x00000000, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000000,
3436 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
3439 {0x00000002, 0x00000004, 0x00000006, 0x00000000, 0x00000000, 0x00000005, 0x00000007}},
3441 {0x00000002, 0x00000004, 0x00000006, 0x00000000, 0x00000000, 0x00000005, 0x00000007, 0x00000000,
3442 0x00000008, 0x0000000a, 0x0000000c, 0x00000000, 0x00000009, 0x0000000b, 0x0000000d}},
3445 {0x00000002, 0x00000004, 0x00000000, 0x00000000, 0x00000003, 0x00000005, 0x00000007}},
3447 {0x00000002, 0x00000004, 0x00000000, 0x00000000, 0x00000003, 0x00000005, 0x00000007, 0x00000000,
3448 0x00000008, 0x0000000a, 0x0000000c, 0x00000000, 0x00000009, 0x0000000b, 0x0000000d}},
3452 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
3454 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b, 0x00000000,
3455 0x0000000e, 0x00000014, 0x00000000, 0x00000000, 0x0000000f, 0x00000016, 0x0000001e}},
3457 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
3460 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
3462 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b, 0x00000000,
3463 0x00000014, 0x00000000, 0x00000000, 0x00000000, 0x00000016, 0x0000001e, 0x0000002c}},
3465 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008}},
3468 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008}},
3470 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008, 0x00000000,
3471 0x00000014, 0x00000016, 0x00000018, 0x00000000, 0x00000000, 0x0000001e, 0x00000020}},
3474 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b}},
3476 {0x00000002, 0x00000006, 0x0000000a, 0x00000000, 0x00000000, 0x00000007, 0x0000000b, 0x00000000,
3477 0x00000012, 0x0000001a, 0x00000024, 0x00000000, 0x00000014, 0x00000000, 0x00000000}},
3480 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008}},
3482 {0x00000002, 0x00000000, 0x00000004, 0x00000000, 0x00000006, 0x00000007, 0x00000008, 0x00000000,
3483 0x00000012, 0x00000014, 0x00000016, 0x00000000, 0x0000001a, 0x00000000, 0x0000001e}},
3488 {
"cab", {
"cab",
D3DXRS_BOOL, 0, 12,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_BOOL, 3, 2, 2, 0, 48,
NULL}, 37},
3489 {
"cab[0]", {
"cab",
D3DXRS_BOOL, 0, 6,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 37},
3490 {
"cab[1]", {
"cab",
D3DXRS_BOOL, 6, 6,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 43},
3500 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
3502 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
3503 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3506 {0x00000002, 0x00000004, 0x00000000, 0x00000003, 0x00000005, 0x00000007}},
3508 {0x00000002, 0x00000004, 0x00000000, 0x00000003, 0x00000005, 0x00000007, 0x00000008, 0x0000000a,
3509 0x0000000c, 0x00000009, 0x0000000b, 0x0000000d}},
3512 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3514 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
3515 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3518 {0x00000002, 0x00000004, 0x00000000, 0x00000003, 0x00000005, 0x00000007}},
3520 {0x00000002, 0x00000004, 0x00000000, 0x00000003, 0x00000005, 0x00000007, 0x00000008, 0x0000000a,
3521 0x0000000c, 0x00000009, 0x0000000b, 0x0000000d}},
3525 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3527 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
3528 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
3530 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3533 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3535 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000000,
3536 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
3538 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3541 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3543 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
3544 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3547 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
3549 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
3550 0x00000001, 0x00000001, 0x00000000, 0x00000000}},
3553 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3555 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
3556 0x00000001, 0x00000001, 0x00000000, 0x00000001}},
3561 {
"canf", {
"canf",
D3DXRS_FLOAT4, 8, 4,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_INT, 3, 2, 2, 0, 48,
NULL}, 119},
3562 {
"canf[0]", {
"canf",
D3DXRS_FLOAT4, 8, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 119},
3563 {
"canf[1]", {
"canf",
D3DXRS_FLOAT4, 10, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 127},
3573 {0x40000000, 0x40800000, 0x00000000, 0x00000000, 0x40400000, 0x40a00000, 0x40e00000}},
3575 {0x40000000, 0x40800000, 0x00000000, 0x00000000, 0x40400000, 0x40a00000, 0x40e00000, 0x00000000,
3576 0x41000000, 0x41200000, 0x41400000, 0x00000000, 0x41100000, 0x41300000, 0x41500000}},
3579 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3581 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
3582 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3585 {0x40000000, 0x40800000, 0x40c00000, 0x00000000, 0x00000000, 0x40a00000, 0x40e00000}},
3587 {0x40000000, 0x40800000, 0x40c00000, 0x00000000, 0x00000000, 0x40a00000, 0x40e00000, 0x00000000,
3588 0x41000000, 0x41200000, 0x41400000, 0x00000000, 0x41100000, 0x41300000, 0x41500000}},
3591 {0x40000000, 0x40800000, 0x00000000, 0x00000000, 0x40400000, 0x40a00000, 0x40e00000}},
3593 {0x40000000, 0x40800000, 0x00000000, 0x00000000, 0x40400000, 0x40a00000, 0x40e00000, 0x00000000,
3594 0x41000000, 0x41200000, 0x41400000, 0x00000000, 0x41100000, 0x41300000, 0x41500000}},
3598 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3600 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000, 0x00000000,
3601 0x41600000, 0x41a00000, 0x00000000, 0x00000000, 0x41700000, 0x41b00000, 0x41f00000}},
3603 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3606 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3608 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000, 0x00000000,
3609 0x41a00000, 0x00000000, 0x00000000, 0x00000000, 0x41b00000, 0x41f00000, 0x42300000}},
3611 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000}},
3614 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000}},
3616 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000, 0x00000000,
3617 0x41a00000, 0x41b00000, 0x41c00000, 0x00000000, 0x00000000, 0x41f00000, 0x42000000}},
3620 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000}},
3622 {0x40000000, 0x40c00000, 0x41200000, 0x00000000, 0x00000000, 0x40e00000, 0x41300000, 0x00000000,
3623 0x41900000, 0x41d00000, 0x42100000, 0x00000000, 0x41a00000, 0x00000000, 0x00000000}},
3626 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000}},
3628 {0x40000000, 0x00000000, 0x40800000, 0x00000000, 0x40c00000, 0x40e00000, 0x41000000, 0x00000000,
3629 0x41900000, 0x41a00000, 0x41b00000, 0x00000000, 0x41d00000, 0x00000000, 0x41f00000}},
3634 {
"cabf", {
"cabf",
D3DXRS_FLOAT4, 4, 4,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_BOOL, 3, 2, 2, 0, 48,
NULL}, 55},
3635 {
"cabf[0]", {
"cabf",
D3DXRS_FLOAT4, 4, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 55},
3636 {
"cabf[1]", {
"cabf",
D3DXRS_FLOAT4, 6, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 63},
3646 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3648 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
3649 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3652 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3654 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
3655 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3658 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3660 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000,
3661 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3664 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3666 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
3667 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3671 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3673 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000,
3674 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3676 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3679 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3681 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000,
3682 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3684 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3687 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3689 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
3690 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3693 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
3695 {0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000,
3696 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000}},
3699 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000}},
3701 {0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
3702 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000}},
3709row_major bool3x2 rb = {1, 1, 0, 0, 1, 1};
3710row_major int3x2 rn = {80, 81, 82, 83, 84, 85};
3711row_major float3x2 rf = {95.1, 95.2, 95.3, 95.4, 95.5, 95.6};
3712row_major bool3x2 rbf = {1, 1, 1, 1, 0, 1};
3713row_major int3x2 rnf = {37, 13, 98, 54, 77, 36};
3718 if (rb._32)
for (
i = 0;
i < rn._31;
i++) tmp.x +=
pos.z * rf._31 * rbf._32;
3719 else for (
i = 0;
i < rn._32;
i++) tmp.y +=
pos.y * rf._32 * rnf._32;
37250xfffe0300, 0x0076fffe, 0x42415443, 0x0000001c, 0x000001a3, 0xfffe0300, 0x00000005, 0x0000001c,
37260x00000100, 0x0000019c, 0x00000080, 0x00000000, 0x00000006, 0x00000084, 0x00000094, 0x000000ac,
37270x00030002, 0x00000003, 0x00000084, 0x000000b0, 0x000000e0, 0x00000002, 0x00000003, 0x000000e4,
37280x000000f4, 0x00000124, 0x00000001, 0x00000006, 0x00000128, 0x00000138, 0x00000168, 0x00060002,
37290x00000003, 0x00000128, 0x0000016c, 0xab006272, 0x00010002, 0x00020003, 0x00000001, 0x00000000,
37300xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0x00666272, 0x3f800000,
37310x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000,
37320x3f800000, 0x00000000, 0x00000000, 0xab006672, 0x00030002, 0x00020003, 0x00000001, 0x00000000,
37330x42be3333, 0x42be6666, 0x00000000, 0x00000000, 0x42be999a, 0x42becccd, 0x00000000, 0x00000000,
37340x42bf0000, 0x42bf3333, 0x00000000, 0x00000000, 0xab006e72, 0x00020002, 0x00020003, 0x00000001,
37350x00000000, 0x00000050, 0x00000051, 0x00000001, 0x00000000, 0x00000052, 0x00000053, 0x00000001,
37360x00000000, 0x00000054, 0x00000055, 0x00000001, 0x00000000, 0x00666e72, 0x42140000, 0x41500000,
37370x00000000, 0x00000000, 0x42c40000, 0x42580000, 0x00000000, 0x00000000, 0x429a0000, 0x42100000,
37380x00000000, 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820,
37390x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932, 0x332e3235, 0x00313131,
37400x05000051, 0xa00f0009, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
37410x900f0000, 0x0200001f, 0x80000000, 0xe00f0000, 0x01000028, 0xe0e40805, 0x03000005, 0x80010000,
37420xa0000002, 0x90aa0000, 0x02000001, 0x80010001, 0xa0000009, 0x01000026, 0xf0e40004, 0x04000004,
37430x80010001, 0x80000000, 0xa0550005, 0x80000001, 0x00000027, 0x02000001, 0x80020001, 0xa0000009,
37440x0000002a, 0x03000005, 0x80010000, 0xa0550002, 0x90550000, 0x02000001, 0x80020001, 0xa0000009,
37450x01000026, 0xf0e40005, 0x04000004, 0x80020001, 0x80000000, 0xa0550008, 0x80550001, 0x00000027,
37460x02000001, 0x80010001, 0xa0000009, 0x0000002b, 0x02000001, 0xe0030000, 0x80e40001, 0x02000001,
37470xe00c0000, 0xa0000009, 0x0000ffff,
3752 {
"rf", {
"rf",
D3DXRS_FLOAT4, 0, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 2, 1, 0, 24,
NULL}, 61},
3762 {0x40000000, 0x40400000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
3763 0x00000000, 0x40e00000}},
3766 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
3767 0x00000000, 0x3f800000}},
3770 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000, 0x00000000,
3771 0x40c00123, 0x40e00123}},
3774 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000, 0x00000000,
3775 0x40c00123, 0x40e00123}},
3779 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
3780 0x41200123, 0x41300123}},
3782 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
3783 0x41200123, 0x41300123}},
3786 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
3787 0x41200123, 0x41300123}},
3789 {0x40000123, 0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x00000000, 0x00000000,
3790 0x40800123, 0x41000123}},
3793 {0x40000123, 0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x00000000, 0x00000000,
3794 0x40800123, 0x41000123}},
3797 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
3798 0x41200123, 0x41300123}},
3801 {0x40000123, 0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x00000000, 0x00000000,
3802 0x40800123, 0x41000123}},
3807 {
"rn", {
"rn",
D3DXRS_INT4, 0, 6,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 78},
3817 {0x00000002, 0x00000003, 0x00000001, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
3818 0x00000000, 0x00000007, 0x00000001}},
3821 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000000,
3822 0x00000000, 0x00000001, 0x00000001}},
3825 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
3826 0x00000006, 0x00000007, 0x00000001}},
3829 {0x00000002, 0x00000003, 0x00000001, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
3830 0x00000000, 0x00000007, 0x00000001}},
3834 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
3835 0x0000000a, 0x0000000b, 0x00000001}},
3837 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
3838 0x0000000a, 0x0000000b, 0x00000001}},
3841 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
3842 0x0000000a, 0x0000000b, 0x00000001}},
3844 {0x00000002, 0x00000006, 0x00000001, 0x00000000, 0x00000000, 0x00000007, 0x00000001, 0x00000000,
3845 0x00000004, 0x00000008, 0x00000001}},
3848 {0x00000002, 0x00000006, 0x00000001, 0x00000000, 0x00000000, 0x00000007, 0x00000001, 0x00000000,
3849 0x00000004, 0x00000008, 0x00000001}},
3852 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
3853 0x0000000a, 0x0000000b, 0x00000001}},
3856 {0x00000002, 0x00000006, 0x00000001, 0x00000000, 0x00000000, 0x00000007, 0x00000001, 0x00000000,
3857 0x00000004, 0x00000008, 0x00000001}},
3862 {
"rb", {
"rb",
D3DXRS_BOOL, 0, 6,
D3DXPC_MATRIX_ROWS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 37},
3872 {0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001}},
3875 {0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000000, 0x00000007}},
3878 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3881 {0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000000, 0x00000007}},
3885 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3887 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001},},
3890 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3892 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
3895 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
3898 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
3901 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
3906 {
"rnf", {
"rnf",
D3DXRS_FLOAT4, 6, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 91},
3916 {0x40000000, 0x40400000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
3917 0x00000000, 0x40e00000}},
3920 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
3921 0x00000000, 0x3f800000}},
3924 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
3925 0x40c00000, 0x40e00000}},
3928 {0x40000000, 0x40400000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
3929 0x00000000, 0x40e00000}},
3933 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
3934 0x41200000, 0x41300000}},
3936 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
3937 0x41200000, 0x41300000}},
3940 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
3941 0x41200000, 0x41300000}},
3943 {0x40000000, 0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x00000000, 0x00000000,
3944 0x40800000, 0x41000000}},
3947 {0x40000000, 0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x00000000, 0x00000000,
3948 0x40800000, 0x41000000}},
3951 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
3952 0x41200000, 0x41300000}},
3955 {0x40000000, 0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x00000000, 0x00000000,
3956 0x40800000, 0x41000000}},
3961 {
"rbf", {
"rbf",
D3DXRS_FLOAT4, 3, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 44},
3971 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
3972 0x00000000, 0x3f800000}},
3975 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
3976 0x00000000, 0x3f800000}},
3979 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
3980 0x3f800000, 0x3f800000}},
3983 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
3984 0x00000000, 0x3f800000}},
3988 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
3989 0x3f800000, 0x3f800000}},
3991 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
3992 0x3f800000, 0x3f800000}},
3995 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
3996 0x3f800000, 0x3f800000}},
3998 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000,
3999 0x3f800000, 0x3f800000}},
4002 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000,
4003 0x3f800000, 0x3f800000}},
4006 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4007 0x3f800000, 0x3f800000}},
4010 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000,
4011 0x3f800000, 0x3f800000}},
4018row_major bool3x2 rab[2] = {1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1};
4019row_major int3x2 ran[2] = {4, 5, 6, 1, 8, 1, 5, 3, 9, 6, 7, 3};
4020row_major float3x2 raf[2] = {1.5, 2.8, 3.3, 4.9, 5.9, 6.8, 7.9, 8.5, 9.4, 1.3, 1.2, 1.1};
4021row_major bool3x2 rabf[2] = {1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1};
4022row_major int3x2 ranf[2] = {35, 40, 60, 80, 70, 56, 37, 13, 98, 54, 77, 36};
4027 if (rab[1]._32)
for (
i = 0;
i < ran[1]._31;
i++) tmp.x +=
pos.z * raf[1]._31 * rabf[1]._32;
4028 else for (
i = 0;
i < ran[1]._32;
i++) tmp.y +=
pos.y * raf[1]._32 * ranf[1]._32;
40340xfffe0300, 0x00b6fffe, 0x42415443, 0x0000001c, 0x000002a3, 0xfffe0300, 0x00000005, 0x0000001c,
40350x00000100, 0x0000029c, 0x00000080, 0x00000000, 0x0000000c, 0x00000084, 0x00000094, 0x000000c4,
40360x00060002, 0x00000006, 0x000000cc, 0x000000dc, 0x0000013c, 0x00000002, 0x00000006, 0x00000140,
40370x00000150, 0x000001b0, 0x00000001, 0x0000000c, 0x000001b4, 0x000001c4, 0x00000224, 0x000c0002,
40380x00000006, 0x0000022c, 0x0000023c, 0x00626172, 0x00010002, 0x00020003, 0x00000002, 0x00000000,
40390xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0x00000000,
40400xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0x66626172, 0xababab00, 0x00010002, 0x00020003,
40410x00000002, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000,
40420x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000,
40430x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000,
40440x00000000, 0x00000000, 0x00666172, 0x00030002, 0x00020003, 0x00000002, 0x00000000, 0x3fc00000,
40450x40333333, 0x00000000, 0x00000000, 0x40533333, 0x409ccccd, 0x00000000, 0x00000000, 0x40bccccd,
40460x40d9999a, 0x00000000, 0x00000000, 0x40fccccd, 0x41080000, 0x00000000, 0x00000000, 0x41166666,
40470x3fa66666, 0x00000000, 0x00000000, 0x3f99999a, 0x3f8ccccd, 0x00000000, 0x00000000, 0x006e6172,
40480x00020002, 0x00020003, 0x00000002, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
40490x00000006, 0x00000001, 0x00000001, 0x00000000, 0x00000008, 0x00000001, 0x00000001, 0x00000000,
40500x00000005, 0x00000003, 0x00000001, 0x00000000, 0x00000009, 0x00000006, 0x00000001, 0x00000000,
40510x00000007, 0x00000003, 0x00000001, 0x00000000, 0x666e6172, 0xababab00, 0x00020002, 0x00020003,
40520x00000002, 0x00000000, 0x420c0000, 0x42200000, 0x00000000, 0x00000000, 0x42700000, 0x42a00000,
40530x00000000, 0x00000000, 0x428c0000, 0x42600000, 0x00000000, 0x00000000, 0x42140000, 0x41500000,
40540x00000000, 0x00000000, 0x42c40000, 0x42580000, 0x00000000, 0x00000000, 0x429a0000, 0x42100000,
40550x00000000, 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820,
40560x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932, 0x332e3235, 0x00313131,
40570x05000051, 0xa00f0012, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
40580x900f0000, 0x0200001f, 0x80000000, 0xe00f0000, 0x01000028, 0xe0e4080b, 0x03000005, 0x80010000,
40590xa0000005, 0x90aa0000, 0x02000001, 0x80010001, 0xa0000012, 0x01000026, 0xf0e4000a, 0x04000004,
40600x80010001, 0x80000000, 0xa055000b, 0x80000001, 0x00000027, 0x02000001, 0x80020001, 0xa0000012,
40610x0000002a, 0x03000005, 0x80010000, 0xa0550005, 0x90550000, 0x02000001, 0x80020001, 0xa0000012,
40620x01000026, 0xf0e4000b, 0x04000004, 0x80020001, 0x80000000, 0xa0550011, 0x80550001, 0x00000027,
40630x02000001, 0x80010001, 0xa0000012, 0x0000002b, 0x02000001, 0xe0030000, 0x80e40001, 0x02000001,
40640xe00c0000, 0xa0000012, 0x0000ffff,
4069 {
"raf", {
"raf",
D3DXRS_FLOAT4, 0, 6,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 2, 2, 0, 48,
NULL}, 84},
4070 {
"raf[0]", {
"raf",
D3DXRS_FLOAT4, 0, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 2, 1, 0, 24,
NULL}, 84},
4071 {
"raf[1]", {
"raf",
D3DXRS_FLOAT4, 3, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_FLOAT, 3, 2, 1, 0, 24,
NULL}, 96},
4081 {0x40000000, 0x40400000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
4082 0x00000000, 0x40e00000}},
4084 {0x40000000, 0x40400000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
4085 0x00000000, 0x40e00000, 0x00000000, 0x00000000, 0x41000000, 0x41100000, 0x00000000, 0x00000000,
4086 0x41200000, 0x41300000, 0x00000000, 0x00000000, 0x41400000, 0x41500000}},
4089 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4090 0x00000000, 0x3f800000}},
4092 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4093 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4094 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
4097 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000, 0x00000000,
4098 0x40c00123, 0x40e00123}},
4100 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000, 0x00000000,
4101 0x40c00123, 0x40e00123, 0x00000000, 0x00000000, 0x41000123, 0x41100123, 0x00000000, 0x00000000,
4102 0x41200123, 0x41300123, 0x00000000, 0x00000000, 0x41400123, 0x41500123}},
4105 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000, 0x00000000,
4106 0x40c00123, 0x40e00123}},
4108 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000, 0x00000000,
4109 0x40c00123, 0x40e00123, 0x00000000, 0x00000000, 0x41000123, 0x41100123, 0x00000000, 0x00000000,
4110 0x41200123, 0x41300123, 0x00000000, 0x00000000, 0x41400123, 0x41500123}},
4114 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
4115 0x41200123, 0x41300123}},
4117 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
4118 0x41200123, 0x41300123, 0x00000000, 0x00000000, 0x41600123, 0x41700123, 0x00000000, 0x00000000,
4119 0x41a00123, 0x41b00123, 0x00000000, 0x00000000, 0x00000000, 0x41f00123}},
4121 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
4122 0x41200123, 0x41300123}},
4125 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
4126 0x41200123, 0x41300123}},
4128 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
4129 0x41200123, 0x41300123, 0x00000000, 0x00000000, 0x41a00123, 0x41b00123, 0x00000000, 0x00000000,
4130 0x00000000, 0x41f00123, 0x00000000, 0x00000000, 0x00000000, 0x42300123}},
4132 {0x40000123, 0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x00000000, 0x00000000,
4133 0x40800123, 0x41000123}},
4136 {0x40000123, 0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x00000000, 0x00000000,
4137 0x40800123, 0x41000123}},
4139 {0x40000123, 0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x00000000, 0x00000000,
4140 0x40800123, 0x41000123, 0x00000000, 0x00000000, 0x41a00123, 0x00000000, 0x00000000, 0x00000000,
4141 0x41b00123, 0x41f00123, 0x00000000, 0x00000000, 0x41c00123, 0x42000123}},
4144 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
4145 0x41200123, 0x41300123}},
4147 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x40c00123, 0x40e00123, 0x00000000, 0x00000000,
4148 0x41200123, 0x41300123, 0x00000000, 0x00000000, 0x41900123, 0x41a00123, 0x00000000, 0x00000000,
4149 0x41d00123, 0x00000000, 0x00000000, 0x00000000, 0x42100123, 0x00000000}},
4152 {0x40000123, 0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x00000000, 0x00000000,
4153 0x40800123, 0x41000123}},
4155 {0x40000123, 0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x00000000, 0x00000000,
4156 0x40800123, 0x41000123, 0x00000000, 0x00000000, 0x41900123, 0x41d00123, 0x00000000, 0x00000000,
4157 0x41a00123, 0x00000000, 0x00000000, 0x00000000, 0x41b00123, 0x41f00123}},
4162 {
"ran", {
"ran",
D3DXRS_INT4, 0, 12,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 2, 0, 48,
NULL}, 113},
4163 {
"ran[0]", {
"ran",
D3DXRS_INT4, 0, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 113},
4164 {
"ran[1]", {
"ran",
D3DXRS_INT4, 3, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 125},
4174 {0x00000002, 0x00000003, 0x00000001, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
4175 0x00000000, 0x00000007, 0x00000001}},
4177 {0x00000002, 0x00000003, 0x00000001, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
4178 0x00000000, 0x00000007, 0x00000001, 0x00000000, 0x00000008, 0x00000009, 0x00000001, 0x00000000,
4179 0x0000000a, 0x0000000b, 0x00000001, 0x00000000, 0x0000000c, 0x0000000d, 0x00000001}},
4182 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000000,
4183 0x00000000, 0x00000001, 0x00000001}},
4185 {0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000000,
4186 0x00000000, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000000,
4187 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
4190 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
4191 0x00000006, 0x00000007, 0x00000001}},
4193 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
4194 0x00000006, 0x00000007, 0x00000001, 0x00000000, 0x00000008, 0x00000009, 0x00000001, 0x00000000,
4195 0x0000000a, 0x0000000b, 0x00000001, 0x00000000, 0x0000000c, 0x0000000d, 0x00000001}},
4198 {0x00000002, 0x00000003, 0x00000001, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
4199 0x00000000, 0x00000007, 0x00000001}},
4201 {0x00000002, 0x00000003, 0x00000001, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
4202 0x00000000, 0x00000007, 0x00000001, 0x00000000, 0x00000008, 0x00000009, 0x00000001, 0x00000000,
4203 0x0000000a, 0x0000000b, 0x00000001, 0x00000000, 0x0000000c, 0x0000000d, 0x00000001}},
4207 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
4208 0x0000000a, 0x0000000b, 0x00000001}},
4210 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
4211 0x0000000a, 0x0000000b, 0x00000001, 0x00000000, 0x0000000e, 0x0000000f, 0x00000001, 0x00000000,
4212 0x00000014, 0x00000016, 0x00000001, 0x00000000, 0x00000000, 0x0000001e, 0x00000001}},
4214 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
4215 0x0000000a, 0x0000000b, 0x00000001}},
4218 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
4219 0x0000000a, 0x0000000b, 0x00000001}},
4221 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
4222 0x0000000a, 0x0000000b, 0x00000001, 0x00000000, 0x00000014, 0x00000016, 0x00000001, 0x00000000,
4223 0x00000000, 0x0000001e, 0x00000001, 0x00000000, 0x00000000, 0x0000002c, 0x00000001}},
4225 {0x00000002, 0x00000006, 0x00000001, 0x00000000, 0x00000000, 0x00000007, 0x00000001, 0x00000000,
4226 0x00000004, 0x00000008, 0x00000001}},
4229 {0x00000002, 0x00000006, 0x00000001, 0x00000000, 0x00000000, 0x00000007, 0x00000001, 0x00000000,
4230 0x00000004, 0x00000008, 0x00000001}},
4232 {0x00000002, 0x00000006, 0x00000001, 0x00000000, 0x00000000, 0x00000007, 0x00000001, 0x00000000,
4233 0x00000004, 0x00000008, 0x00000001, 0x00000000, 0x00000014, 0x00000000, 0x00000001, 0x00000000,
4234 0x00000016, 0x0000001e, 0x00000001, 0x00000000, 0x00000018, 0x00000020, 0x00000001}},
4237 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
4238 0x0000000a, 0x0000000b, 0x00000001}},
4240 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000006, 0x00000007, 0x00000001, 0x00000000,
4241 0x0000000a, 0x0000000b, 0x00000001, 0x00000000, 0x00000012, 0x00000014, 0x00000001, 0x00000000,
4242 0x0000001a, 0x00000000, 0x00000001, 0x00000000, 0x00000024, 0x00000000, 0x00000001}},
4245 {0x00000002, 0x00000006, 0x00000001, 0x00000000, 0x00000000, 0x00000007, 0x00000001, 0x00000000,
4246 0x00000004, 0x00000008, 0x00000001}},
4248 {0x00000002, 0x00000006, 0x00000001, 0x00000000, 0x00000000, 0x00000007, 0x00000001, 0x00000000,
4249 0x00000004, 0x00000008, 0x00000001, 0x00000000, 0x00000012, 0x0000001a, 0x00000001, 0x00000000,
4250 0x00000014, 0x00000000, 0x00000001, 0x00000000, 0x00000016, 0x0000001e, 0x00000001}},
4255 {
"rab", {
"rab",
D3DXRS_BOOL, 0, 12,
D3DXPC_MATRIX_ROWS,
D3DXPT_BOOL, 3, 2, 2, 0, 48,
NULL}, 37},
4256 {
"rab[0]", {
"rab",
D3DXRS_BOOL, 0, 6,
D3DXPC_MATRIX_ROWS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 37},
4257 {
"rab[1]", {
"rab",
D3DXRS_BOOL, 6, 6,
D3DXPC_MATRIX_ROWS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 43},
4267 {0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001}},
4269 {0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001,
4270 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4273 {0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000000, 0x00000007}},
4275 {0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000000, 0x00000007, 0x00000008, 0x00000009,
4276 0x0000000a, 0x0000000b, 0x0000000c, 0x0000000d}},
4279 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4281 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
4282 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4285 {0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000000, 0x00000007}},
4287 {0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000000, 0x00000007, 0x00000008, 0x00000009,
4288 0x0000000a, 0x0000000b, 0x0000000c, 0x0000000d}},
4292 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4294 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
4295 0x00000001, 0x00000001, 0x00000000, 0x00000001}},
4297 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4300 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4302 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
4303 0x00000000, 0x00000001, 0x00000000, 0x00000001}},
4305 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
4308 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
4310 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000,
4311 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4314 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4316 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
4317 0x00000001, 0x00000000, 0x00000001, 0x00000000}},
4320 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001}},
4322 {0x00000001, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001,
4323 0x00000001, 0x00000000, 0x00000001, 0x00000001}},
4328 {
"ranf", {
"ranf",
D3DXRS_FLOAT4, 12, 6,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 2, 0, 48,
NULL}, 143},
4329 {
"ranf[0]", {
"ranf",
D3DXRS_FLOAT4, 12, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 143},
4330 {
"ranf[1]", {
"ranf",
D3DXRS_FLOAT4, 15, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 155},
4340 {0x40000000, 0x40400000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
4341 0x00000000, 0x40e00000,}},
4343 {0x40000000, 0x40400000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
4344 0x00000000, 0x40e00000, 0x00000000, 0x00000000, 0x41000000, 0x41100000, 0x00000000, 0x00000000,
4345 0x41200000, 0x41300000, 0x00000000, 0x00000000, 0x41400000, 0x41500000}},
4348 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4349 0x00000000, 0x3f800000}},
4351 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4352 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4353 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
4356 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
4357 0x40c00000, 0x40e00000}},
4359 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
4360 0x40c00000, 0x40e00000, 0x00000000, 0x00000000, 0x41000000, 0x41100000, 0x00000000, 0x00000000,
4361 0x41200000, 0x41300000, 0x00000000, 0x00000000, 0x41400000, 0x41500000}},
4364 {0x40000000, 0x40400000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
4365 0x00000000, 0x40e00000}},
4367 {0x40000000, 0x40400000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000, 0x00000000,
4368 0x00000000, 0x40e00000, 0x00000000, 0x00000000, 0x41000000, 0x41100000, 0x00000000, 0x00000000,
4369 0x41200000, 0x41300000, 0x00000000, 0x00000000, 0x41400000, 0x41500000}},
4373 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
4374 0x41200000, 0x41300000}},
4376 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
4377 0x41200000, 0x41300000, 0x00000000, 0x00000000, 0x41600000, 0x41700000, 0x00000000, 0x00000000,
4378 0x41a00000, 0x41b00000, 0x00000000, 0x00000000, 0x00000000, 0x41f00000}},
4380 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
4381 0x41200000, 0x41300000}},
4384 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
4385 0x41200000, 0x41300000}},
4387 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
4388 0x41200000, 0x41300000, 0x00000000, 0x00000000, 0x41a00000, 0x41b00000, 0x00000000, 0x00000000,
4389 0x00000000, 0x41f00000, 0x00000000, 0x00000000, 0x00000000, 0x42300000}},
4391 {0x40000000, 0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x00000000, 0x00000000,
4392 0x40800000, 0x41000000}},
4395 {0x40000000, 0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x00000000, 0x00000000,
4396 0x40800000, 0x41000000}},
4398 {0x40000000, 0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x00000000, 0x00000000,
4399 0x40800000, 0x41000000, 0x00000000, 0x00000000, 0x41a00000, 0x00000000, 0x00000000, 0x00000000,
4400 0x41b00000, 0x41f00000, 0x00000000, 0x00000000, 0x41c00000, 0x42000000}},
4403 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
4404 0x41200000, 0x41300000}},
4406 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40c00000, 0x40e00000, 0x00000000, 0x00000000,
4407 0x41200000, 0x41300000, 0x00000000, 0x00000000, 0x41900000, 0x41a00000, 0x00000000, 0x00000000,
4408 0x41d00000, 0x00000000, 0x00000000, 0x00000000, 0x42100000, 0x00000000}},
4411 {0x40000000, 0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x00000000, 0x00000000,
4412 0x40800000, 0x41000000}},
4414 {0x40000000, 0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x00000000, 0x00000000,
4415 0x40800000, 0x41000000, 0x00000000, 0x00000000, 0x41900000, 0x41d00000, 0x00000000, 0x00000000,
4416 0x41a00000, 0x00000000, 0x00000000, 0x00000000, 0x41b00000, 0x41f00000}},
4421 {
"rabf", {
"rabf",
D3DXRS_FLOAT4, 6, 6,
D3DXPC_MATRIX_ROWS,
D3DXPT_BOOL, 3, 2, 2, 0, 48,
NULL}, 55},
4422 {
"rabf[0]", {
"rabf",
D3DXRS_FLOAT4, 6, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 55},
4423 {
"rabf[1]", {
"rabf",
D3DXRS_FLOAT4, 9, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_BOOL, 3, 2, 1, 0, 24,
NULL}, 67},
4433 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4434 0x00000000, 0x3f800000}},
4436 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4437 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4438 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
4441 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4442 0x00000000, 0x3f800000}},
4444 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4445 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4446 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
4449 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4450 0x3f800000, 0x3f800000}},
4452 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4453 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4454 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
4457 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4458 0x00000000, 0x3f800000}},
4460 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4461 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4462 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
4466 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4467 0x3f800000, 0x3f800000}},
4469 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4470 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4471 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000}},
4473 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4474 0x3f800000, 0x3f800000}},
4477 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4478 0x3f800000, 0x3f800000}},
4480 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4481 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4482 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000}},
4484 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000,
4485 0x3f800000, 0x3f800000}},
4488 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000,
4489 0x3f800000, 0x3f800000}},
4491 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000,
4492 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000,
4493 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
4496 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4497 0x3f800000, 0x3f800000}},
4499 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4500 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4501 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000}},
4504 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000,
4505 0x3f800000, 0x3f800000}},
4507 {0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000,
4508 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
4509 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000}},
4516struct {
bool b; bool3 vb;}
sb = {1, 1, 0, 1};
4517struct {
int n;
int3 vn;} sn = {11, 12, 13, 14};
4518struct {
float f; float3 vf;} sf = {1.1f, 2.2f, 3.3f, 4.4f};
4519struct {
int nf;
int3 vnf;} snf = {31, 32, 33, 34};
4520struct {
bool bf; bool3 vbf;} sbf = {1, 0, 0, 1};
4525 if (
sb.vb.z)
for (
i = 0;
i < sn.n;
i++) tmp.x +=
pos.z * sf.vf.x * snf.vnf.z;
4526 else for (
i = 0;
i < sn.vn.z;
i++) tmp.y +=
pos.y * sf.vf.z * sbf.vbf.y;
45320xfffe0300, 0x00a2fffe, 0x42415443, 0x0000001c, 0x00000253, 0xfffe0300, 0x00000005, 0x0000001c,
45330x00000100, 0x0000024c, 0x00000080, 0x00000000, 0x00000004, 0x000000bc, 0x000000cc, 0x000000dc,
45340x00040002, 0x00000002, 0x000000f8, 0x00000108, 0x00000128, 0x00000002, 0x00000002, 0x00000164,
45350x00000174, 0x00000194, 0x00000001, 0x00000004, 0x000001d0, 0x000001e0, 0x00000200, 0x00020002,
45360x00000002, 0x0000021c, 0x0000022c, 0x62006273, 0xababab00, 0x00010000, 0x00010001, 0x00000001,
45370x00000000, 0xab006276, 0x00010001, 0x00030001, 0x00000001, 0x00000000, 0x00000083, 0x00000088,
45380x00000098, 0x0000009c, 0x00000005, 0x00040001, 0x00020001, 0x000000ac, 0xffffffff, 0xffffffff,
45390x00000000, 0xffffffff, 0x00666273, 0x76006662, 0xab006662, 0x000000e0, 0x00000088, 0x000000e3,
45400x0000009c, 0x00000005, 0x00040001, 0x00020001, 0x000000e8, 0x3f800000, 0x00000000, 0x00000000,
45410x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x66006673, 0xababab00, 0x00030000,
45420x00010001, 0x00000001, 0x00000000, 0xab006676, 0x00030001, 0x00030001, 0x00000001, 0x00000000,
45430x0000012b, 0x00000130, 0x00000140, 0x00000144, 0x00000005, 0x00040001, 0x00020001, 0x00000154,
45440x3f8ccccd, 0x00000000, 0x00000000, 0x00000000, 0x400ccccd, 0x40533333, 0x408ccccd, 0x00000000,
45450x6e006e73, 0xababab00, 0x00020000, 0x00010001, 0x00000001, 0x00000000, 0xab006e76, 0x00020001,
45460x00030001, 0x00000001, 0x00000000, 0x00000197, 0x0000019c, 0x000001ac, 0x000001b0, 0x00000005,
45470x00040001, 0x00020001, 0x000001c0, 0x0000000b, 0x00000000, 0x00000001, 0x00000000, 0x0000000c,
45480x0000000d, 0x0000000e, 0x00000000, 0x00666e73, 0x7600666e, 0xab00666e, 0x00000204, 0x0000019c,
45490x00000207, 0x000001b0, 0x00000005, 0x00040001, 0x00020001, 0x0000020c, 0x41f80000, 0x00000000,
45500x00000000, 0x00000000, 0x42000000, 0x42040000, 0x42080000, 0x00000000, 0x335f7376, 0x4d00305f,
45510x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970,
45520x2e392072, 0x392e3932, 0x332e3235, 0x00313131, 0x05000051, 0xa00f0006, 0x00000000, 0x00000000,
45530x00000000, 0x00000000, 0x0200001f, 0x80000000, 0x900f0000, 0x0200001f, 0x80000000, 0xe00f0000,
45540x01000028, 0xe0e40803, 0x03000005, 0x80010000, 0xa0000001, 0x90aa0000, 0x02000001, 0x80010001,
45550xa0000006, 0x01000026, 0xf0e40000, 0x04000004, 0x80010001, 0x80000000, 0xa0aa0003, 0x80000001,
45560x00000027, 0x02000001, 0x80020001, 0xa0000006, 0x0000002a, 0x03000005, 0x80010000, 0xa0aa0001,
45570x90550000, 0x02000001, 0x80020001, 0xa0000006, 0x01000026, 0xf0e40003, 0x04000004, 0x80020001,
45580x80000000, 0xa0550005, 0x80550001, 0x00000027, 0x02000001, 0x80010001, 0xa0000006, 0x0000002b,
45590x02000001, 0xe0030000, 0x80e40001, 0x02000001, 0xe00c0000, 0xa0000006, 0x0000ffff,
4564 {
"sf", {
"sf",
D3DXRS_FLOAT4, 0, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 93},
4565 {
"sf.f", {
"f",
D3DXRS_FLOAT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 93},
4566 {
"sf.vf", {
"vf",
D3DXRS_FLOAT4, 1, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 97},
4576 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000, 0x40800000, 0x40a00000, 0x00000000}},
4579 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
4582 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000}},
4585 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000}},
4587 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000}},
4590 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000}},
4592 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000}},
4595 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000}},
4597 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4600 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4603 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4606 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4611 {
"sn", {
"sn",
D3DXRS_INT4, 0, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 120},
4612 {
"sn.n", {
"n",
D3DXRS_INT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 120},
4613 {
"sn.vn", {
"vn",
D3DXRS_INT4, 1, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 124},
4623 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000003, 0x00000004, 0x00000005, 0x00000000}},
4626 {0x00000001, 0x00000000, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000000}},
4629 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000004, 0x00000005, 0x00000000}},
4632 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000003, 0x00000004, 0x00000005, 0x00000000}},
4634 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000004, 0x00000005, 0x00000000}},
4637 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000004, 0x00000005, 0x00000000}},
4639 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000004, 0x00000005, 0x00000000}},
4642 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000004, 0x00000005, 0x00000000}},
4644 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4647 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4650 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4653 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4658 {
"sb", {
"sb",
D3DXRS_BOOL, 0, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 51},
4659 {
"sb.b", {
"b",
D3DXRS_BOOL, 0, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 51},
4660 {
"sb.vb", {
"vb",
D3DXRS_BOOL, 1, 3,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 52},
4670 {0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4673 {0x00000002, 0x00000003, 0x00000004, 0x00000005}},
4676 {0x00000001, 0x00000000, 0x00000001, 0x00000001}},
4679 {0x00000002, 0x00000003, 0x00000004, 0x00000005}},
4681 {0x00000001, 0x00000000, 0x00000001, 0x00000001}},
4684 {0x00000001, 0x00000000, 0x00000001, 0x00000001}},
4686 {0x00000001, 0x00000000, 0x00000001, 0x00000001}},
4689 {0x00000001, 0x00000000, 0x00000001, 0x00000001}},
4691 {0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4694 {0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4697 {0x00000001, 0x00000000, 0x00000001, 0x00000001}},
4700 {0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4705 {
"snf", {
"snf",
D3DXRS_FLOAT4, 2, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 139},
4706 {
"snf.nf", {
"nf",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 139},
4707 {
"snf.vnf", {
"vnf",
D3DXRS_FLOAT4, 3, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 143},
4717 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000, 0x40800000, 0x40a00000, 0x00000000}},
4720 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
4723 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000}},
4726 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000, 0x40800000, 0x40a00000, 0x00000000}},
4728 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000}},
4731 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000}},
4733 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000}},
4736 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000}},
4738 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4741 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4744 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4747 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4752 {
"sbf", {
"sbf",
D3DXRS_FLOAT4, 4, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 66},
4753 {
"sbf.bf", {
"bf",
D3DXRS_FLOAT4, 4, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 66},
4754 {
"sbf.vbf", {
"vbf",
D3DXRS_FLOAT4, 5, 1,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 70},
4764 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
4767 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
4770 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000}},
4773 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
4775 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000}},
4778 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000}},
4780 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000}},
4783 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000}},
4785 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4788 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4791 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4794 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4801struct {
bool b; bool3 vb;} sab[2] = {1, 1, 0, 1, 0, 1, 0, 1};
4802struct {
int n;
int3 vn;} san[2] = {21, 22, 23, 24, 25, 26, 27, 28};
4803struct {
float f; float3 vf;} saf[2] = {1.1f, 2.1f, 3.1f, 4.1f, 5.1f, 6.1f, 7.1f, 8.1f};
4804struct {
int nf;
int3 vnf;} sanf[2] = {41, 0, 43, 44, 41, 42, 43, 44};
4805struct {
bool bf; bool3 vbf;} sabf[2] = {1, 0, 0, 1, 1, 1, 0, 1};
4810 if (sab[1].vb.z)
for (
i = 0;
i < san[1].n;
i++) tmp.x +=
pos.z * saf[1].vf.x * sanf[1].vnf.z;
4811 else for (
i = 0;
i < san[1].vn.z;
i++) tmp.y +=
pos.y * saf[1].vf.z * sabf[1].vbf.y;
48170xfffe0300, 0x00c6fffe, 0x42415443, 0x0000001c, 0x000002e3, 0xfffe0300, 0x00000005, 0x0000001c,
48180x00000100, 0x000002dc, 0x00000080, 0x00000000, 0x00000008, 0x000000bc, 0x000000cc, 0x000000ec,
48190x00080002, 0x00000004, 0x00000108, 0x00000118, 0x00000158, 0x00000002, 0x00000004, 0x00000194,
48200x000001a4, 0x000001e4, 0x00000001, 0x00000008, 0x00000220, 0x00000230, 0x00000270, 0x00040002,
48210x00000004, 0x0000028c, 0x0000029c, 0x00626173, 0xabab0062, 0x00010000, 0x00010001, 0x00000001,
48220x00000000, 0xab006276, 0x00010001, 0x00030001, 0x00000001, 0x00000000, 0x00000084, 0x00000088,
48230x00000098, 0x0000009c, 0x00000005, 0x00040001, 0x00020002, 0x000000ac, 0xffffffff, 0xffffffff,
48240x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x66626173, 0x00666200,
48250x00666276, 0x000000f1, 0x00000088, 0x000000f4, 0x0000009c, 0x00000005, 0x00040001, 0x00020002,
48260x000000f8, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000,
48270x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000,
48280x00000000, 0x00666173, 0xabab0066, 0x00030000, 0x00010001, 0x00000001, 0x00000000, 0xab006676,
48290x00030001, 0x00030001, 0x00000001, 0x00000000, 0x0000015c, 0x00000160, 0x00000170, 0x00000174,
48300x00000005, 0x00040001, 0x00020002, 0x00000184, 0x3f8ccccd, 0x00000000, 0x00000000, 0x00000000,
48310x40066666, 0x40466666, 0x40833333, 0x00000000, 0x40a33333, 0x00000000, 0x00000000, 0x00000000,
48320x40c33333, 0x40e33333, 0x4101999a, 0x00000000, 0x006e6173, 0xabab006e, 0x00020000, 0x00010001,
48330x00000001, 0x00000000, 0xab006e76, 0x00020001, 0x00030001, 0x00000001, 0x00000000, 0x000001e8,
48340x000001ec, 0x000001fc, 0x00000200, 0x00000005, 0x00040001, 0x00020002, 0x00000210, 0x00000015,
48350x00000000, 0x00000001, 0x00000000, 0x00000016, 0x00000017, 0x00000018, 0x00000000, 0x00000019,
48360x00000000, 0x00000001, 0x00000000, 0x0000001a, 0x0000001b, 0x0000001c, 0x00000000, 0x666e6173,
48370x00666e00, 0x00666e76, 0x00000275, 0x000001ec, 0x00000278, 0x00000200, 0x00000005, 0x00040001,
48380x00020002, 0x0000027c, 0x42240000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x422c0000,
48390x42300000, 0x00000000, 0x42240000, 0x00000000, 0x00000000, 0x00000000, 0x42280000, 0x422c0000,
48400x42300000, 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820,
48410x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932, 0x332e3235, 0x00313131,
48420x05000051, 0xa00f000c, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
48430x900f0000, 0x0200001f, 0x80000000, 0xe00f0000, 0x01000028, 0xe0e40807, 0x03000005, 0x80010000,
48440xa0000003, 0x90aa0000, 0x02000001, 0x80010001, 0xa000000c, 0x01000026, 0xf0e40004, 0x04000004,
48450x80010001, 0x80000000, 0xa0aa0007, 0x80000001, 0x00000027, 0x02000001, 0x80020001, 0xa000000c,
48460x0000002a, 0x03000005, 0x80010000, 0xa0aa0003, 0x90550000, 0x02000001, 0x80020001, 0xa000000c,
48470x01000026, 0xf0e40007, 0x04000004, 0x80020001, 0x80000000, 0xa055000b, 0x80550001, 0x00000027,
48480x02000001, 0x80010001, 0xa000000c, 0x0000002b, 0x02000001, 0xe0030000, 0x80e40001, 0x02000001,
48490xe00c0000, 0xa000000c, 0x0000ffff,
4854 {
"saf", {
"saf",
D3DXRS_FLOAT4, 0, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 2, 2, 32,
NULL}, 105},
4855 {
"saf[0]", {
"saf",
D3DXRS_FLOAT4, 0, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 105},
4856 {
"saf[0].f", {
"f",
D3DXRS_FLOAT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 105},
4857 {
"saf[0].vf", {
"vf",
D3DXRS_FLOAT4, 1, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 109},
4858 {
"saf[1]", {
"saf",
D3DXRS_FLOAT4, 2, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 113},
4859 {
"saf[1].f", {
"f",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 113},
4860 {
"saf[1].vf", {
"vf",
D3DXRS_FLOAT4, 3, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 117},
4870 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000, 0x40800000, 0x40a00000, 0x00000000}},
4872 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x41000000, 0x41100000, 0x00000000}},
4875 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
4877 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
4880 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000}},
4882 {0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x41000123, 0x41100123, 0x00000000}},
4885 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000}},
4887 {0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x41000123, 0x41100123, 0x00000000}},
4889 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000}},
4892 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800123, 0x40a00123, 0x00000000}},
4894 {0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x41000123, 0x41100123, 0x00000000}},
4896 {0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x41000123, 0x41100123, 0x00000000}},
4899 {0x40c00123, 0x00000000, 0x00000000, 0x00000000, 0x40e00123, 0x41000123, 0x41100123, 0x00000000}},
4901 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4904 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4913 {
"san", {
"san",
D3DXRS_INT4, 0, 8,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 2, 2, 32,
NULL}, 140},
4914 {
"san[0]", {
"san",
D3DXRS_INT4, 0, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 140},
4915 {
"san[0].n", {
"n",
D3DXRS_INT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 140},
4916 {
"san[0].vn", {
"vn",
D3DXRS_INT4, 1, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 144},
4917 {
"san[1]", {
"san",
D3DXRS_INT4, 2, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 148},
4918 {
"san[1].n", {
"n",
D3DXRS_INT4, 2, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 148},
4919 {
"san[1].vn", {
"vn",
D3DXRS_INT4, 3, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 152},
4929 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000003, 0x00000004, 0x00000005, 0x00000000}},
4931 {0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000007, 0x00000008, 0x00000009, 0x00000000}},
4934 {0x00000001, 0x00000000, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000000}},
4936 {0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000000}},
4939 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000004, 0x00000005, 0x00000000}},
4941 {0x00000006, 0x00000000, 0x00000001, 0x00000000, 0x00000007, 0x00000008, 0x00000009, 0x00000000}},
4944 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000003, 0x00000004, 0x00000005, 0x00000000}},
4946 {0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000007, 0x00000008, 0x00000009, 0x00000000}},
4948 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000004, 0x00000005, 0x00000000}},
4951 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000004, 0x00000005, 0x00000000}},
4953 {0x00000006, 0x00000000, 0x00000001, 0x00000000, 0x00000007, 0x00000008, 0x00000009, 0x00000000}},
4955 {0x00000006, 0x00000000, 0x00000001, 0x00000000, 0x00000007, 0x00000008, 0x00000009, 0x00000000},},
4958 {0x00000006, 0x00000000, 0x00000001, 0x00000000, 0x00000007, 0x00000008, 0x00000009, 0x00000000}},
4960 {0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4963 {0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4966 {0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4969 {0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
4974 {
"sab", {
"sab",
D3DXRS_BOOL, 0, 8,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 2, 2, 32,
NULL}, 51},
4975 {
"sab[0]", {
"sab",
D3DXRS_BOOL, 0, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 51},
4976 {
"sab[0].b", {
"b",
D3DXRS_BOOL, 0, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 51},
4977 {
"sab[0].vb", {
"vb",
D3DXRS_BOOL, 1, 3,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 52},
4978 {
"sab[1]", {
"sab",
D3DXRS_BOOL, 4, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 55},
4979 {
"sab[1].b", {
"b",
D3DXRS_BOOL, 4, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 55},
4980 {
"sab[1].vb", {
"vb",
D3DXRS_BOOL, 5, 3,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 56},
4990 {0x00000001, 0x00000001, 0x00000001, 0x00000001}},
4992 {0x00000000, 0x00000001, 0x00000001, 0x00000001}},
4995 {0x00000002, 0x00000003, 0x00000004, 0x00000005}},
4997 {0x00000000, 0x00000007, 0x00000008, 0x00000009}},
5000 {0x00000001, 0x00000000, 0x00000001, 0x00000001}},
5002 {0x00000001, 0x00000001, 0x00000001, 0x00000001}},
5005 {0x00000002, 0x00000003, 0x00000004, 0x00000005}},
5007 {0x00000000, 0x00000007, 0x00000008, 0x00000009}},
5009 {0x00000001, 0x00000000, 0x00000001, 0x00000001}},
5012 {0x00000001, 0x00000000, 0x00000001, 0x00000001}},
5014 {0x00000001, 0x00000001, 0x00000001, 0x00000001}},
5016 {0x00000001, 0x00000001, 0x00000001, 0x00000001}},
5019 {0x00000001, 0x00000001, 0x00000001, 0x00000001}},
5021 {0x00000000, 0x00000001, 0x00000001, 0x00000001}},
5024 {0x00000000, 0x00000001, 0x00000001, 0x00000001}},
5027 {0x00000001, 0x00000001, 0x00000001, 0x00000001}},
5030 {0x00000000, 0x00000001, 0x00000001, 0x00000001}},
5035 {
"sanf", {
"sanf",
D3DXRS_FLOAT4, 4, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 2, 2, 32,
NULL}, 167},
5036 {
"sanf[0]", {
"sanf",
D3DXRS_FLOAT4, 4, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 167},
5037 {
"sanf[0].nf", {
"nf",
D3DXRS_FLOAT4, 4, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 167},
5038 {
"sanf[0].vnf", {
"vnf",
D3DXRS_FLOAT4, 5, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 171},
5039 {
"sanf[1]", {
"sanf",
D3DXRS_FLOAT4, 6, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 175},
5040 {
"sanf[1].nf", {
"nf",
D3DXRS_FLOAT4, 6, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 175},
5041 {
"sanf[1].vnf", {
"vnf",
D3DXRS_FLOAT4, 7, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 179},
5051 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000, 0x40800000, 0x40a00000, 0x00000000}},
5053 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x41000000, 0x41100000, 0x00000000}},
5056 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5058 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5061 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000}},
5063 {0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x41000000, 0x41100000, 0x00000000}},
5066 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000, 0x40800000, 0x40a00000, 0x00000000}},
5068 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x41000000, 0x41100000, 0x00000000}},
5070 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000}},
5073 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x40800000, 0x40a00000, 0x00000000}},
5075 {0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x41000000, 0x41100000, 0x00000000}},
5077 {0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x41000000, 0x41100000, 0x00000000}},
5080 {0x40c00000, 0x00000000, 0x00000000, 0x00000000, 0x40e00000, 0x41000000, 0x41100000, 0x00000000}},
5082 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
5085 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
5094 {
"sabf", {
"sabf",
D3DXRS_FLOAT4, 8, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 2, 2, 32,
NULL}, 70},
5095 {
"sabf[0]", {
"sabf",
D3DXRS_FLOAT4, 8, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 70},
5096 {
"sabf[0].bf", {
"bf",
D3DXRS_FLOAT4, 8, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 70},
5097 {
"sabf[0].vbf", {
"vbf",
D3DXRS_FLOAT4, 9, 1,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 74},
5098 {
"sabf[1]", {
"sabf",
D3DXRS_FLOAT4, 10, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 78},
5099 {
"sabf[1].bf", {
"bf",
D3DXRS_FLOAT4, 10, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 78},
5100 {
"sabf[1].vbf", {
"vbf",
D3DXRS_FLOAT4, 11, 1,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 82},
5110 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5112 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5115 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5117 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5120 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000}},
5122 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5125 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5127 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5129 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000}},
5132 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000}},
5134 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5136 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5139 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000}},
5141 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
5144 {0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000}},
5155struct {
bool b;
struct {
bool b; bool3 vb;}
s;
bool b1;} ssb = {1, 1, 0, 1, 1, 0};
5156struct {
int n;
struct {
int n;
int3 vn;}
s;
int n1;} ssn = {71, 72, 73, 74, 75, 76};
5157struct {
float f;
struct {
float f; float3 vf;}
s;
float f1;} ssf = {1.1f, 2.1f, 3.1f, 4.1f, 5.1f, 6.1f};
5158struct {
int nf;
struct {
int nf;
int3 vnf;}
s;
int nf1;} ssnf = {41, 0, 43, 44, 41, 42};
5159struct {
bool bf;
struct {
bool bf; bool3 vbf;}
s;
bool bf1;} ssbf = {1, 0, 0, 1, 1, 0};
5164 if (ssb.b1)
for (
i = 0;
i < ssn.n1;
i++) tmp.x +=
pos.z * ssf.f1 * ssnf.nf1;
5165 else for (
i = 0;
i < ssn.s.vn.z;
i++) tmp.y +=
pos.y * ssf.s.vf.z * ssbf.bf1;
51710xfffe0300, 0x00fcfffe, 0x42415443, 0x0000001c, 0x000003bb, 0xfffe0300, 0x00000005, 0x0000001c,
51720x00000100, 0x000003b4, 0x00000080, 0x00000000, 0x00000006, 0x000000ec, 0x000000fc, 0x00000114,
51730x00080002, 0x00000004, 0x0000015c, 0x0000016c, 0x000001ac, 0x00000002, 0x00000004, 0x00000214,
51740x00000224, 0x00000264, 0x00000001, 0x00000006, 0x000002cc, 0x000002dc, 0x0000031c, 0x00040002,
51750x00000004, 0x00000364, 0x00000374, 0x00627373, 0xabab0062, 0x00010000, 0x00010001, 0x00000001,
51760x00000000, 0x62760073, 0xababab00, 0x00010001, 0x00030001, 0x00000001, 0x00000000, 0x00000084,
51770x00000088, 0x0000009a, 0x000000a0, 0x00000005, 0x00040001, 0x00020001, 0x000000b0, 0xab003162,
51780x00000084, 0x00000088, 0x00000098, 0x000000c0, 0x000000d0, 0x00000088, 0x00000005, 0x00060001,
51790x00030001, 0x000000d4, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000,
51800x66627373, 0x00666200, 0x00666276, 0x00000119, 0x00000088, 0x0000011c, 0x000000a0, 0x00000005,
51810x00040001, 0x00020001, 0x00000120, 0x00316662, 0x00000119, 0x00000088, 0x00000098, 0x00000130,
51820x00000140, 0x00000088, 0x00000005, 0x00060001, 0x00030001, 0x00000144, 0x3f800000, 0x00000000,
51830x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000,
51840x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00667373, 0xabab0066,
51850x00030000, 0x00010001, 0x00000001, 0x00000000, 0xab006676, 0x00030001, 0x00030001, 0x00000001,
51860x00000000, 0x000001b0, 0x000001b4, 0x000001c4, 0x000001c8, 0x00000005, 0x00040001, 0x00020001,
51870x000001d8, 0xab003166, 0x000001b0, 0x000001b4, 0x00000098, 0x000001e8, 0x000001f8, 0x000001b4,
51880x00000005, 0x00060001, 0x00030001, 0x000001fc, 0x3f8ccccd, 0x00000000, 0x00000000, 0x00000000,
51890x40066666, 0x00000000, 0x00000000, 0x00000000, 0x40466666, 0x40833333, 0x40a33333, 0x00000000,
51900x40c33333, 0x00000000, 0x00000000, 0x00000000, 0x006e7373, 0xabab006e, 0x00020000, 0x00010001,
51910x00000001, 0x00000000, 0xab006e76, 0x00020001, 0x00030001, 0x00000001, 0x00000000, 0x00000268,
51920x0000026c, 0x0000027c, 0x00000280, 0x00000005, 0x00040001, 0x00020001, 0x00000290, 0xab00316e,
51930x00000268, 0x0000026c, 0x00000098, 0x000002a0, 0x000002b0, 0x0000026c, 0x00000005, 0x00060001,
51940x00030001, 0x000002b4, 0x00000047, 0x00000000, 0x00000001, 0x00000000, 0x00000048, 0x00000000,
51950x00000001, 0x00000000, 0x00000049, 0x0000004a, 0x0000004b, 0x00000000, 0x0000004c, 0x00000000,
51960x00000001, 0x00000000, 0x666e7373, 0x00666e00, 0x00666e76, 0x00000321, 0x0000026c, 0x00000324,
51970x00000280, 0x00000005, 0x00040001, 0x00020001, 0x00000328, 0x0031666e, 0x00000321, 0x0000026c,
51980x00000098, 0x00000338, 0x00000348, 0x0000026c, 0x00000005, 0x00060001, 0x00030001, 0x0000034c,
51990x42240000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
52000x422c0000, 0x42300000, 0x42240000, 0x00000000, 0x42280000, 0x00000000, 0x00000000, 0x00000000,
52010x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461,
52020x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932, 0x332e3235, 0x00313131, 0x05000051, 0xa00f000c,
52030x00000000, 0x00000000, 0x00000000, 0x00000000, 0x0200001f, 0x80000000, 0x900f0000, 0x0200001f,
52040x80000000, 0xe00f0000, 0x01000028, 0xe0e40805, 0x03000005, 0x80010000, 0xa0000003, 0x90aa0000,
52050x02000001, 0x80010001, 0xa000000c, 0x01000026, 0xf0e40005, 0x04000004, 0x80010001, 0x80000000,
52060xa0000007, 0x80000001, 0x00000027, 0x02000001, 0x80020001, 0xa000000c, 0x0000002a, 0x03000005,
52070x80010000, 0xa0aa0002, 0x90550000, 0x02000001, 0x80020001, 0xa000000c, 0x01000026, 0xf0e40004,
52080x04000004, 0x80020001, 0x80000000, 0xa000000b, 0x80550001, 0x00000027, 0x02000001, 0x80010001,
52090xa000000c, 0x0000002b, 0x02000001, 0xe0030000, 0x80e40001, 0x02000001, 0xe00c0000, 0xa000000c,
5215 {
"ssf", {
"ssf",
D3DXRS_FLOAT4, 0, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 6, 1, 3, 24,
NULL}, 137},
5216 {
"ssf.f", {
"f",
D3DXRS_FLOAT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 137},
5217 {
"ssf.s", {
"s",
D3DXRS_FLOAT4, 1, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 141},
5218 {
"ssf.s.f", {
"f",
D3DXRS_FLOAT4, 1, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 141},
5219 {
"ssf.s.vf", {
"vf",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 145},
5220 {
"ssf.f1", {
"f1",
D3DXRS_FLOAT4, 3, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 149},
5230 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000, 0x00000000, 0x00000000, 0x00000000,
5231 0x40800000, 0x40a00000, 0x00000000, 0x00000000, 0x40e00000}},
5234 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000,
5235 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000}},
5238 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5239 0x40800123, 0x40a00123, 0x40c00123, 0x00000000, 0x40e00123}},
5242 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5243 0x40800123, 0x40a00123, 0x40c00123, 0x00000000, 0x40e00123}},
5247 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5248 0x40800123, 0x40a00123, 0x40c00123, 0x00000000, 0x40e00123}},
5250 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5251 0x40800123, 0x40a00123, 0x40c00123, 0x00000000, 0x40e00123}},
5254 {0x40000123, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5255 0x40800123, 0x40a00123, 0x40c00123, 0x00000000, 0x40e00123}},
5267 {
"ssn", {
"ssn",
D3DXRS_INT4, 0, 6,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 6, 1, 3, 24,
NULL}, 183},
5268 {
"ssn.n", {
"n",
D3DXRS_INT4, 0, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 183},
5269 {
"ssn.s", {
"s",
D3DXRS_INT4, 1, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 187},
5270 {
"ssn.s.n", {
"n",
D3DXRS_INT4, 1, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 187},
5271 {
"ssn.s.vn", {
"vn",
D3DXRS_INT4, 2, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 191},
5272 {
"ssn.n1", {
"n1",
D3DXRS_INT4, 3, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 195},
5282 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000003, 0x00000000, 0x00000001, 0x00000000,
5283 0x00000004, 0x00000005, 0x00000000, 0x00000000, 0x00000007, 0x00000000, 0x00000001}},
5286 {0x00000001, 0x00000000, 0x00000001, 0x00000000, 0x00000001, 0x00000000, 0x00000001, 0x00000000,
5287 0x00000001, 0x00000001, 0x00000000, 0x00000000, 0x00000001, 0x00000000, 0x00000001}},
5290 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
5291 0x00000004, 0x00000005, 0x00000006, 0x00000000, 0x00000007, 0x00000000, 0x00000001}},
5294 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000003, 0x00000000, 0x00000001, 0x00000000,
5295 0x00000004, 0x00000005, 0x00000000, 0x00000000, 0x00000007, 0x00000000, 0x00000001}},
5299 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
5300 0x00000004, 0x00000005, 0x00000006, 0x00000000, 0x00000007, 0x00000000, 0x00000001}},
5302 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
5303 0x00000004, 0x00000005, 0x00000006, 0x00000000, 0x00000007, 0x00000000, 0x00000001}},
5306 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
5307 0x00000004, 0x00000005, 0x00000006, 0x00000000, 0x00000007, 0x00000000, 0x00000001}},
5309 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
5310 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001}},
5313 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
5314 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001}},
5317 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
5318 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001}},
5321 {0x00000002, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0x00000001, 0x00000000,
5322 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000001}},
5327 {
"ssb", {
"ssb",
D3DXRS_BOOL, 0, 6,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 6, 1, 3, 24,
NULL}, 63},
5328 {
"ssb.b", {
"b",
D3DXRS_BOOL, 0, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 63},
5329 {
"ssb.s", {
"s",
D3DXRS_BOOL, 1, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 64},
5330 {
"ssb.s.b", {
"b",
D3DXRS_BOOL, 1, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 64},
5331 {
"ssb.s.vb", {
"vb",
D3DXRS_BOOL, 2, 3,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 65},
5332 {
"ssb.b1", {
"b1",
D3DXRS_BOOL, 5, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 68},
5342 {0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001}},
5345 {0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000000, 0x00000007}},
5348 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
5351 {0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000000, 0x00000007}},
5355 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
5357 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
5360 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
5362 {0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001}},
5365 {0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001}},
5368 {0x00000001, 0x00000000, 0x00000001, 0x00000001, 0x00000001, 0x00000001}},
5371 {0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001}},
5376 {
"ssnf", {
"ssnf",
D3DXRS_FLOAT4, 4, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 6, 1, 3, 24,
NULL}, 221},
5377 {
"ssnf.nf", {
"nf",
D3DXRS_FLOAT4, 4, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 221},
5378 {
"ssnf.s", {
"s",
D3DXRS_FLOAT4, 5, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 225},
5379 {
"ssnf.s.nf", {
"nf",
D3DXRS_FLOAT4, 5, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 225},
5380 {
"ssnf.s.vnf", {
"vnf",
D3DXRS_FLOAT4, 6, 1,
D3DXPC_VECTOR,
D3DXPT_INT, 1, 3, 1, 0, 12,
NULL}, 229},
5381 {
"ssnf.nf1", {
"nf1",
D3DXRS_FLOAT4, 7, 1,
D3DXPC_SCALAR,
D3DXPT_INT, 1, 1, 1, 0, 4,
NULL}, 233},
5391 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000, 0x00000000, 0x00000000, 0x00000000,
5392 0x40800000, 0x40a00000, 0x00000000, 0x00000000, 0x40e00000}},
5395 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000,
5396 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000}},
5399 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5400 0x40800000, 0x40a00000, 0x40c00000, 0x00000000, 0x40e00000}},
5403 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x40400000, 0x00000000, 0x00000000, 0x00000000,
5404 0x40800000, 0x40a00000, 0x00000000, 0x00000000, 0x40e00000}},
5408 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5409 0x40800000, 0x40a00000, 0x40c00000, 0x00000000, 0x40e00000}},
5411 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5412 0x40800000, 0x40a00000, 0x40c00000, 0x00000000, 0x40e00000}},
5415 {0x40000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5416 0x40800000, 0x40a00000, 0x40c00000, 0x00000000, 0x40e00000}},
5428 {
"ssbf", {
"ssbf",
D3DXRS_FLOAT4, 8, 4,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 6, 1, 3, 24,
NULL}, 91},
5429 {
"ssbf.bf", {
"bf",
D3DXRS_FLOAT4, 8, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 91},
5430 {
"ssbf.s", {
"s",
D3DXRS_FLOAT4, 9, 2,
D3DXPC_STRUCT,
D3DXPT_VOID, 1, 4, 1, 2, 16,
NULL}, 95},
5431 {
"ssbf.s.bf", {
"bf",
D3DXRS_FLOAT4, 9, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 95},
5432 {
"ssbf.s.vbf", {
"vbf",
D3DXRS_FLOAT4, 10, 1,
D3DXPC_VECTOR,
D3DXPT_BOOL, 1, 3, 1, 0, 12,
NULL}, 99},
5433 {
"ssbf.bf1", {
"bf1",
D3DXRS_FLOAT4, 11, 1,
D3DXPC_SCALAR,
D3DXPT_BOOL, 1, 1, 1, 0, 4,
NULL}, 103},
5443 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000,
5444 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000}},
5447 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000,
5448 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000}},
5451 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5452 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000}},
5455 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000,
5456 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000}},
5460 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5461 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000}},
5463 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5464 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000}},
5467 {0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
5468 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000}},
5482row_major int3x2 ran[2] = {4, 5, 6, 1, 8, 1, 2, 3, 4, 7, 9, 1};
5487 for (
k = 0;
k < ran[1]._21;
k++)
5488 tmp.y +=
pos.y + tmp.x;
54940xfffe0300, 0x0038fffe, 0x42415443, 0x0000001c, 0x000000ab, 0xfffe0300, 0x00000001, 0x0000001c,
54950x00000100, 0x000000a4, 0x00000030, 0x00000001, 0x00000009, 0x00000034, 0x00000044, 0x006e6172,
54960x00020002, 0x00020003, 0x00000002, 0x00000000, 0x00000004, 0x00000005, 0x00000001, 0x00000000,
54970x00000006, 0x00000001, 0x00000001, 0x00000000, 0x00000008, 0x00000001, 0x00000001, 0x00000000,
54980x00000002, 0x00000003, 0x00000001, 0x00000000, 0x00000004, 0x00000007, 0x00000001, 0x00000000,
54990x00000009, 0x00000001, 0x00000001, 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73,
55000x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932,
55010x332e3235, 0x00313131, 0x05000051, 0xa00f0000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
55020x0200001f, 0x80000000, 0x900f0000, 0x0200001f, 0x80000000, 0xe00f0000, 0x02000001, 0x80010000,
55030xa0000000, 0x01000026, 0xf0e40008, 0x03000002, 0x80010000, 0x80000000, 0x90550000, 0x00000027,
55040x02000001, 0xe0020000, 0x80000000, 0x02000001, 0xe00d0000, 0xa0000000, 0x0000ffff,
5509 {
"ran", {
"ran",
D3DXRS_INT4, 0, 9,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 2, 0, 48,
NULL}, 17},
5510 {
"ran[0]", {
"ran",
D3DXRS_INT4, 0, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 17},
5511 {
"ran[1]", {
"ran",
D3DXRS_INT4, 3, 3,
D3DXPC_MATRIX_ROWS,
D3DXPT_INT, 3, 2, 1, 0, 24,
NULL}, 29},
5522 tmp.y +=
pos.y + vaf[8].x;
55280xfffe0300, 0x0020fffe, 0x42415443, 0x0000001c, 0x0000004b, 0xfffe0300, 0x00000001, 0x0000001c,
55290x00000100, 0x00000044, 0x00000030, 0x00000002, 0x00000009, 0x00000034, 0x00000000, 0x00666176,
55300x00030001, 0x00030001, 0x0000000a, 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73,
55310x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932,
55320x332e3235, 0x00313131, 0x05000051, 0xa00f0009, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
55330x0200001f, 0x80000000, 0x900f0000, 0x0200001f, 0x80000000, 0xe00f0000, 0x03000002, 0xe0020000,
55340xa0000008, 0x90550000, 0x02000001, 0xe00d0000, 0xa0000009, 0x0000ffff,
5539 {
"vaf", {
"vaf",
D3DXRS_FLOAT4, 0, 9,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 10, 0, 120,
NULL}, 0},
5540 {
"vaf[0]", {
"vaf",
D3DXRS_FLOAT4, 0, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 0},
5541 {
"vaf[1]", {
"vaf",
D3DXRS_FLOAT4, 1, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 0},
5542 {
"vaf[2]", {
"vaf",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 0},
5543 {
"vaf[3]", {
"vaf",
D3DXRS_FLOAT4, 3, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 0},
5544 {
"vaf[4]", {
"vaf",
D3DXRS_FLOAT4, 4, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 0},
5545 {
"vaf[5]", {
"vaf",
D3DXRS_FLOAT4, 5, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 0},
5546 {
"vaf[6]", {
"vaf",
D3DXRS_FLOAT4, 6, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 0},
5547 {
"vaf[7]", {
"vaf",
D3DXRS_FLOAT4, 7, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 0},
5548 {
"vaf[8]", {
"vaf",
D3DXRS_FLOAT4, 8, 1,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 0},
5549 {
"vaf[9]", {
"vaf",
D3DXRS_FLOAT4, 9, 0,
D3DXPC_VECTOR,
D3DXPT_FLOAT, 1, 3, 1, 0, 12,
NULL}, 0},
5555 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123, 0x00000000,
5556 0x41200123, 0x41300123, 0x41400123, 0x00000000, 0x41600123, 0x41700123, 0x41800123}},
5559 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123, 0x00000000,
5560 0x41200123, 0x41300123, 0x41400123, 0x00000000, 0x41600123, 0x41700123, 0x41800123}},
5562 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123, 0x00000000,
5563 0x41200123, 0x41300123, 0x41400123, 0x00000000, 0x41600123, 0x41700123, 0x41800123, 0x00000000,
5564 0x41a00123, 0x41b00123, 0x41c00123, 0x00000000, 0x00000000, 0x41f00123, 0x42000123, 0x00000000,
5565 0x00000000, 0x42300123, 0x42400123, 0x00000000, 0x42600123, 0x42700123, 0x42800123}},
5567 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123, 0x00000000,
5568 0x41200123, 0x41300123, 0x41400123, 0x00000000, 0x41600123, 0x41700123, 0x41800123, 0x00000000,
5569 0x41a00123, 0x41b00123, 0x41c00123, 0x00000000, 0x00000000, 0x41f00123, 0x42000123, 0x00000000,
5570 0x00000000, 0x42300123, 0x42400123, 0x00000000, 0x42600123, 0x42700123, 0x42800123, 0x00000000,
5571 0x43000123, 0x43100123, 0x43200123}},
5573 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123, 0x00000000,
5574 0x40800123, 0x41000123, 0x41400123, 0x00000000, 0x40a00123, 0x41100123, 0x41500123}},
5577 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123, 0x00000000,
5578 0x40800123, 0x41000123, 0x41400123, 0x00000000, 0x40a00123, 0x41100123, 0x41500123}},
5580 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123, 0x00000000,
5581 0x40800123, 0x41000123, 0x41400123, 0x00000000, 0x40a00123, 0x41100123, 0x41500123, 0x00000000,
5582 0x41a00123, 0x00000000, 0x00000000, 0x00000000, 0x41b00123, 0x41f00123, 0x42300123, 0x00000000,
5583 0x41c00123, 0x42000123, 0x42400123, 0x00000000, 0x41d00123, 0x42100123, 0x42500123}},
5585 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123, 0x00000000,
5586 0x40800123, 0x41000123, 0x41400123, 0x00000000, 0x40a00123, 0x41100123, 0x41500123, 0x00000000,
5587 0x41a00123, 0x00000000, 0x00000000, 0x00000000, 0x41b00123, 0x41f00123, 0x42300123, 0x00000000,
5588 0x41c00123, 0x42000123, 0x42400123, 0x00000000, 0x41d00123, 0x42100123, 0x42500123, 0x00000000,
5589 0x43000123, 0x43400123, 0x43800123}},
5592 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123, 0x00000000,
5593 0x41200123, 0x41300123, 0x41400123, 0x00000000, 0x41600123, 0x41700123, 0x41800123}},
5595 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123, 0x00000000,
5596 0x41200123, 0x41300123, 0x41400123, 0x00000000, 0x41600123, 0x41700123, 0x41800123, 0x00000000,
5597 0x41900123, 0x41a00123, 0x41b00123, 0x00000000, 0x41d00123, 0x00000000, 0x41f00123, 0x00000000,
5598 0x42100123, 0x00000000, 0x42300123, 0x00000000, 0x42500123, 0x42600123, 0x42700123}},
5600 {0x40000123, 0x00000000, 0x40800123, 0x00000000, 0x40c00123, 0x40e00123, 0x41000123, 0x00000000,
5601 0x41200123, 0x41300123, 0x41400123, 0x00000000, 0x41600123, 0x41700123, 0x41800123, 0x00000000,
5602 0x41900123, 0x41a00123, 0x41b00123, 0x00000000, 0x41d00123, 0x00000000, 0x41f00123, 0x00000000,
5603 0x42100123, 0x00000000, 0x42300123, 0x00000000, 0x42500123, 0x42600123, 0x42700123, 0x00000000,
5604 0x42800123, 0x42900123, 0x43000123}},
5607 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123, 0x00000000,
5608 0x40800123, 0x41000123, 0x41400123, 0x00000000, 0x40a00123, 0x41100123, 0x41500123}},
5610 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123, 0x00000000,
5611 0x40800123, 0x41000123, 0x41400123, 0x00000000, 0x40a00123, 0x41100123, 0x41500123, 0x00000000,
5612 0x41900123, 0x41d00123, 0x42100123, 0x00000000, 0x41a00123, 0x00000000, 0x00000000, 0x00000000,
5613 0x41b00123, 0x41f00123, 0x42300123, 0x00000000, 0x41c00123, 0x42000123, 0x42400123}},
5615 {0x40000123, 0x40c00123, 0x41200123, 0x00000000, 0x00000000, 0x40e00123, 0x41300123, 0x00000000,
5616 0x40800123, 0x41000123, 0x41400123, 0x00000000, 0x40a00123, 0x41100123, 0x41500123, 0x00000000,
5617 0x41900123, 0x41d00123, 0x42100123, 0x00000000, 0x41a00123, 0x00000000, 0x00000000, 0x00000000,
5618 0x41b00123, 0x41f00123, 0x42300123, 0x00000000, 0x41c00123, 0x42000123, 0x42400123, 0x00000000,
5619 0x42800123, 0x43200123, 0x43600123}},
5626float4x4
cf = {1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8};
56380xfffe0300, 0x003efffe, 0x42415443, 0x0000001c, 0x000000c3, 0xfffe0300, 0x00000002, 0x0000001c,
56390x00000100, 0x000000bc, 0x00000044, 0x00000002, 0x00000002, 0x00000048, 0x00000058, 0x00000098,
56400x00020002, 0x00000001, 0x0000009c, 0x000000ac, 0xab006663, 0x00030003, 0x00040004, 0x00000001,
56410x00000000, 0x3f8ccccd, 0x40b00000, 0x411e6666, 0x3fc00000, 0x400ccccd, 0x40d33333, 0x3f99999a,
56420x3fcccccd, 0x40533333, 0x40f66666, 0x3fa66666, 0x3fd9999a, 0x408ccccd, 0x410ccccd, 0x3fb33333,
56430x3fe66666, 0xabab0066, 0x00030000, 0x00010001, 0x00000001, 0x00000000, 0x420551ec, 0x00000000,
56440x00000000, 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820,
56450x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932, 0x332e3235, 0x00313131,
56460x05000051, 0xa00f0003, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x0200001f, 0x80000000,
56470xe00f0000, 0x02000001, 0x80020000, 0xa0550001, 0x03000005, 0xe00b0000, 0x80550000, 0xa0240003,
56480x02000001, 0xe0040000, 0xa0000002, 0x0000ffff,
5653 {
"cf", {
"cf",
D3DXRS_FLOAT4, 0, 2,
D3DXPC_MATRIX_COLUMNS,
D3DXPT_FLOAT, 4, 4, 1, 0, 64,
NULL}, 0},
5654 {
"f", {
"f",
D3DXRS_FLOAT4, 2, 1,
D3DXPC_SCALAR,
D3DXPT_FLOAT, 1, 1, 1, 0, 4,
NULL}, 0},
5660 {0x40000123, 0x40c00123, 0x41200123, 0x41600123, 0x00000000, 0x40e00123, 0x41300123, 0x41700123}},
5906 ok(
hr ==
D3D_OK,
"Get*ShaderConstantB failed, got %08x\n",
hr);
5913 ok(
hr ==
D3D_OK,
"Get*ShaderConstantI failed, got %08x\n",
hr);
5923 ok(
hr ==
D3D_OK,
"Get*ShaderConstantF failed, got %08x\n",
hr);
5927 ok(0,
"This should not happen!\n");
5937 ok(
ret[
i] ==
value,
"Get*ShaderConstant failed, %u got 0x%x(%f) expected 0x%x(%f)\n",
i,
6011 ok(0,
"This should not happen!\n");
6020 IDirect3DDevice9 *
device;
6029 skip(
"Couldn't create application window\n");
6034 skip(
"Couldn't create IDirect3D9 object\n");
6045 skip(
"Failed to create IDirect3DDevice9 object %#x\n",
hr);
6056 skip(
"Skipping: Test requires VS >= 3 and PS >= 3.\n");
6067 ID3DXConstantTable *
ctable;
6075 ok(
hr ==
D3D_OK,
"D3DXGetShaderConstantTable \"%s\" failed, got %08x, expected %08x\n", tablename,
hr,
D3D_OK);
6078 ok(
hr ==
D3D_OK,
"GetDesc \"%s\" failed, got %08x, expected %08x\n", tablename,
hr,
D3D_OK);
6083 is_vs = (tdesc.
Version & 0xFFFF0000) == 0xFFFE0000;
6099 ok(!
strcmp(expected_desc->
Name,
desc.Name),
"GetConstantDesc \"%s\" failed, got \"%s\", expected \"%s\"\n",
6101 ok(expected_desc->
RegisterSet ==
desc.RegisterSet,
"GetConstantDesc \"%s\" failed, got %#x, expected %#x\n",
6104 "GetConstantDesc \"%s\" failed, got %u, expected %u\n",
6107 "GetConstantDesc \"%s\" failed, got %u, expected %u\n",
6109 ok(expected_desc->
Class ==
desc.Class,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
6111 ok(expected_desc->
Type ==
desc.Type,
"GetConstantDesc \"%s\" failed, got %#x, expected %#x\n",
6113 ok(expected_desc->
Rows ==
desc.Rows,
"GetConstantDesc \"%s\" failed, got %#x, expected %#x\n",
6115 ok(expected_desc->
Columns ==
desc.Columns,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
6117 ok(expected_desc->
Elements ==
desc.Elements,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
6120 "GetConstantDesc \"%s\" failed, got %u, expected %u\n",
6122 ok(expected_desc->
Bytes ==
desc.Bytes,
"GetConstantDesc \"%s\" failed, got %u, expected %u\n",
6127 "GetConstantDesc \"%s\" failed, got %u, expected %u\n",
6143 ok(
hr ==
D3D_OK,
"Set* \"%s\" index %u, count %u failed, got %x, expected %x\n", tablename,
i,
6148 ok(
ret == 0,
"Get*ShaderConstant \"%s\" index %u, count %u failed\n", tablename,
i,
test->in_count_min);
6150 if (
test->in_count_max >
test->in_count_min)
6155 ok(
hr ==
D3D_OK,
"Set* \"%s\" index %u, count %u failed, got %x, expected %x\n", tablename,
i,
6160 ok(
ret == 0,
"Get*ShaderConstant \"%s\" index %u, count %u failed\n", tablename,
i,
test->in_count_max);
6165 ok(
count == 0,
"Release \"%s\" failed, got %u, expected %u\n", tablename,
count, 0);
6170 ok(
count == 0,
"The Direct3D device reference count was %u, should be 0\n",
count);
6173 ok(
count == 0,
"The Direct3D object reference count was %u, should be 0\n",
count);
6198 {0x40a33333, 0x00000000, 0x00000000, 0x00000000, 0x41300000, 0x00000000, 0x00000000, 0x00000000,
6199 0x3f800000, 0x00000000, 0x00000000, 0x00000000},
6200 {0x00000008, 0x00000000, 0x00000001},
6203 {0x40466666, 0x00000000, 0x00000000, 0x00000000, 0x404ccccd, 0x00000000, 0x00000000, 0x00000000,
6204 0x41600000, 0x00000000, 0x00000000, 0x00000000, 0x41700000, 0x00000000, 0x00000000, 0x00000000,
6205 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000},
6206 {0x00000020, 0x00000000, 0x00000001, 0x00000000, 0x00000021, 0x00000000, 0x00000001, 0x00000000},
6207 {0xffffffff, 0x00000000}},
6209 {0x40a33333, 0x40a66666, 0x40a9999a, 0x00000000, 0x41300000, 0x42aa0000, 0x42780000, 0x00000000,
6210 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000},
6211 {0x00000007, 0x00000008, 0x00000009, 0x00000000, 0x00666e76, 0x41300000, 0x42aa0000, 0x42780000,
6212 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369},
6213 {0xffffffff, 0x00000000, 0xffffffff}},
6215 {0x425c6666, 0x425ccccd, 0x425d3333, 0x00000000, 0x425d999a, 0x425e0000, 0x425e6666, 0x00000000,
6216 0x43020000, 0x430c0000, 0x43160000, 0x00000000, 0x43200000, 0x432a0000, 0x43340000, 0x00000000,
6217 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000},
6218 {0x00000046, 0x00000050, 0x0000005a, 0x00000000, 0x00000064, 0x0000006e, 0x00000078, 0x00000000,
6219 0x666e6176, 0xababab00, 0x00020001, 0x00030001, 0x00000002, 0x00000000, 0x43020000, 0x430c0000,
6220 0x43160000, 0x00000000, 0x43200000, 0x432a0000, 0x43340000, 0x00000000, 0x335f7376, 0x4d00305f},
6221 {0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff}},
6223 {0x4171999a, 0x4174cccd, 0x41780000, 0x00000000, 0x41733333, 0x41766666, 0x4179999a, 0x00000000,
6224 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
6225 0x41f00000, 0x42040000, 0x42080000, 0x00000000, 0x41f80000, 0x42000000, 0x42100000, 0x00000000},
6226 {0x00000004, 0x00000006, 0x00000008, 0x00000000, 0x00000005, 0x00000007, 0x00000009, 0x00000000,
6227 0x00666e63, 0x41f00000, 0x42040000, 0x42080000, 0x00000000, 0x41f80000, 0x42000000, 0x42100000,
6228 0x00000000, 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c},
6229 {0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff}},
6231 {0x3f8ccccd, 0x40533333, 0x40b00000, 0x00000000, 0x400ccccd, 0x408ccccd, 0x40d33333, 0x00000000,
6232 0x40f66666, 0x411e6666, 0x3fa66666, 0x00000000, 0x410ccccd, 0x3f99999a, 0x3fb33333, 0x00000000,
6233 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
6234 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x3f800000, 0x00000000,
6235 0x43960000, 0x43978000, 0x43980000, 0x00000000, 0x43968000, 0x43970000, 0x43990000, 0x00000000,
6236 0x43af0000, 0x44238000, 0x43a30000, 0x00000000, 0x43b68000, 0x44190000, 0x4479c000, 0x00000000},
6237 {0x0000000e, 0x00000010, 0x00000012, 0x00000000, 0x0000000f, 0x00000047, 0x00000013, 0x00000000,
6238 0x00000037, 0x00000060, 0x00000061, 0x00000000, 0x0000003f, 0x00000060, 0x0000000d, 0x00000000,
6239 0x666e6163, 0xababab00, 0x00020003, 0x00020003, 0x00000002, 0x00000000, 0x43960000, 0x43978000,
6240 0x43980000, 0x00000000, 0x43968000, 0x43970000, 0x43990000, 0x00000000, 0x43af0000, 0x44238000,
6241 0x43a30000, 0x00000000, 0x43b68000, 0x44190000, 0x4479c000, 0x00000000, 0x335f7376, 0x4d00305f,
6242 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461, 0x6d6f4320, 0x656c6970},
6243 {0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000,
6244 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff}},
6246 {0x42be3333, 0x42be6666, 0x00000000, 0x00000000, 0x42be999a, 0x42becccd, 0x00000000, 0x00000000,
6247 0x42bf0000, 0x42bf3333, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
6248 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000,
6249 0x42140000, 0x41500000, 0x00000000, 0x00000000, 0x42c40000, 0x42580000, 0x00000000, 0x00000000,
6250 0x429a0000, 0x42100000, 0x00000000, 0x00000000},
6251 {0x00000050, 0x00000051, 0x00000001, 0x00000000, 0x00000052, 0x00000053, 0x00000001, 0x00000000,
6252 0x00000054, 0x00000055, 0x00000001, 0x00000000, 0x00666e72, 0x42140000, 0x41500000, 0x00000000,
6253 0x00000000, 0x42c40000, 0x42580000, 0x00000000, 0x00000000, 0x429a0000, 0x42100000, 0x00000000},
6254 {0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff}},
6256 {0x3fc00000, 0x40333333, 0x00000000, 0x00000000, 0x40533333, 0x409ccccd, 0x00000000, 0x00000000,
6257 0x40bccccd, 0x40d9999a, 0x00000000, 0x00000000, 0x40fccccd, 0x41080000, 0x00000000, 0x00000000,
6258 0x41166666, 0x3fa66666, 0x00000000, 0x00000000, 0x3f99999a, 0x3f8ccccd, 0x00000000, 0x00000000,
6259 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
6260 0x00000000, 0x3f800000, 0x00000000, 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000,
6261 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x00000000,
6262 0x420c0000, 0x42200000, 0x00000000, 0x00000000, 0x42700000, 0x42a00000, 0x00000000, 0x00000000,
6263 0x428c0000, 0x42600000, 0x00000000, 0x00000000, 0x42140000, 0x41500000, 0x00000000, 0x00000000,
6264 0x42c40000, 0x42580000, 0x00000000, 0x00000000, 0x429a0000, 0x42100000, 0x00000000, 0x00000000},
6265 {0x00000004, 0x00000005, 0x00000001, 0x00000000, 0x00000006, 0x00000001, 0x00000001, 0x00000000,
6266 0x00000008, 0x00000001, 0x00000001, 0x00000000, 0x00000005, 0x00000003, 0x00000001, 0x00000000,
6267 0x00000009, 0x00000006, 0x00000001, 0x00000000, 0x00000007, 0x00000003, 0x00000001, 0x00000000,
6268 0x666e6172, 0xababab00, 0x00020002, 0x00020003, 0x00000002, 0x00000000, 0x420c0000, 0x42200000,
6269 0x00000000, 0x00000000, 0x42700000, 0x42a00000, 0x00000000, 0x00000000, 0x428c0000, 0x42600000,
6270 0x00000000, 0x00000000, 0x42140000, 0x41500000, 0x00000000, 0x00000000, 0x42c40000, 0x42580000},
6271 {0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0x00000000,
6272 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff}},
6274 {0x3f8ccccd, 0x00000000, 0x00000000, 0x00000000, 0x400ccccd, 0x40533333, 0x408ccccd, 0x00000000,
6275 0x41f80000, 0x00000000, 0x00000000, 0x00000000, 0x42000000, 0x42040000, 0x42080000, 0x00000000,
6276 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000},
6277 {0x0000000b, 0x00000000, 0x00000001, 0x00000000, 0x0000000c, 0x0000000d, 0x0000000e, 0x00000000,
6278 0x00666e73, 0x7600666e, 0xab00666e, 0x00000204, 0x0000019c, 0x00000207, 0x000001b0, 0x00000005},
6279 {0xffffffff, 0xffffffff, 0x00000000, 0xffffffff}},
6281 {0x3f8ccccd, 0x00000000, 0x00000000, 0x00000000, 0x40066666, 0x40466666, 0x40833333, 0x00000000,
6282 0x40a33333, 0x00000000, 0x00000000, 0x00000000, 0x40c33333, 0x40e33333, 0x4101999a, 0x00000000,
6283 0x42240000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x422c0000, 0x42300000, 0x00000000,
6284 0x42240000, 0x00000000, 0x00000000, 0x00000000, 0x42280000, 0x422c0000, 0x42300000, 0x00000000,
6285 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000,
6286 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x3f800000, 0x00000000, 0x3f800000, 0x00000000},
6287 {0x00000015, 0x00000000, 0x00000001, 0x00000000, 0x00000016, 0x00000017, 0x00000018, 0x00000000,
6288 0x00000019, 0x00000000, 0x00000001, 0x00000000, 0x0000001a, 0x0000001b, 0x0000001c, 0x00000000,
6289 0x666e6173, 0x00666e00, 0x00666e76, 0x00000275, 0x000001ec, 0x00000278, 0x00000200, 0x00000005,
6290 0x00040001, 0x00020002, 0x0000027c, 0x42240000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
6291 {0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff}},
6293 {0x3f8ccccd, 0x00000000, 0x00000000, 0x00000000, 0x40066666, 0x00000000, 0x00000000, 0x00000000,
6294 0x40466666, 0x40833333, 0x40a33333, 0x00000000, 0x40c33333, 0x00000000, 0x00000000, 0x00000000,
6295 0x42240000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
6296 0x422c0000, 0x42300000, 0x42240000, 0x00000000, 0x42280000, 0x00000000, 0x00000000, 0x00000000,
6297 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
6298 0x00000000, 0x3f800000, 0x3f800000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
6299 {0x00000047, 0x00000000, 0x00000001, 0x00000000, 0x00000048, 0x00000000, 0x00000001, 0x00000000,
6300 0x00000049, 0x0000004a, 0x0000004b, 0x00000000, 0x0000004c, 0x00000000, 0x00000001, 0x00000000,
6301 0x666e7373, 0x00666e00, 0x00666e76, 0x00000321, 0x0000026c, 0x00000324, 0x00000280, 0x00000005},
6302 {0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000}},
6305 {0x00000004, 0x00000005, 0x00000001, 0x00000000, 0x00000006, 0x00000001, 0x00000001, 0x00000000,
6306 0x00000008, 0x00000001, 0x00000001, 0x00000000, 0x00000002, 0x00000003, 0x00000001, 0x00000000,
6307 0x00000004, 0x00000007, 0x00000001, 0x00000000, 0x00000009, 0x00000001, 0x00000001, 0x00000000,
6308 0x335f7376, 0x4d00305f, 0x6f726369, 0x74666f73, 0x29522820, 0x534c4820, 0x6853204c, 0x72656461,
6309 0x6d6f4320, 0x656c6970, 0x2e392072, 0x392e3932},
6314 {0x3f8ccccd, 0x40b00000, 0x411e6666, 0x3fc00000, 0x400ccccd, 0x40d33333, 0x3f99999a, 0x3fcccccd,
6315 0x420551ec, 0x00000000, 0x00000000, 0x00000000},
6325 IDirect3DDevice9 *
device;
6334 skip(
"Couldn't create application window\n");
6339 skip(
"Couldn't create IDirect3D9 object\n");
6350 skip(
"Failed to create IDirect3DDevice9 object %#x\n",
hr);
6361 skip(
"Skipping: Test requires VS >= 3 and PS >= 3.\n");
6371 ID3DXConstantTable *
ctable;
6377 ok(
hr ==
D3D_OK,
"D3DXGetShaderConstantTable \"%s\" failed, got %08x, expected %08x\n", tablename,
hr,
D3D_OK);
6380 ok(
hr ==
D3D_OK,
"GetDesc \"%s\" failed, got %08x, expected %08x\n", tablename,
hr,
D3D_OK);
6382 is_vs = (tdesc.
Version & 0xFFFF0000) == 0xFFFE0000;
6387 ok(
hr ==
D3D_OK,
"SetDefaults \"%s\" failed, got %08x, expected %08x\n", tablename,
hr,
D3D_OK);
6391 ok(
ret == 0,
"Get*ShaderConstantF \"%s\" failed\n", tablename);
6395 ok(
ret == 0,
"Get*ShaderConstantI \"%s\" failed\n", tablename);
6399 ok(
ret == 0,
"Get*ShaderConstantB \"%s\" failed\n", tablename);
6402 ok(
count == 0,
"Release \"%s\" failed, got %u, expected %u\n", tablename,
count, 0);
6407 ok(
count == 0,
"The Direct3D device reference count was %u, should be 0\n",
count);
6410 ok(
count == 0,
"The Direct3D object reference count was %u, should be 0\n",
count);
6417 static const DWORD invalid_1[] =
6432 0x0000001f, 0x80000000, 0x900f0000,
6433 0x0000001f, 0x80000003, 0x900f0001,
6434 0x0000001f, 0x8001000a, 0x900f0002,
6435 0x0000001f, 0x80000005, 0x900f0003,
6436 0x00000001, 0xc00f0000, 0x90e40000,
6437 0x00000001, 0xd00f0001, 0x90e40002,
6438 0x00000001, 0xe0070000, 0x90e40001,
6439 0x00000001, 0xc00f0001, 0x90ff0002,
6440 0x00000001, 0xc00f0002, 0x90ff0001,
6446 0x0200001f, 0x80000000, 0x900f0000,
6447 0x0200001f, 0x80000003, 0x900f0001,
6448 0x0200001f, 0x8001000a, 0x900f0002,
6449 0x0200001f, 0x80000005, 0x900f0003,
6450 0x02000001, 0xc00f0000, 0x90e40000,
6451 0x02000001, 0xd00f0001, 0x90e40002,
6452 0x02000001, 0xe0070000, 0x90e40003,
6453 0x02000001, 0xc00f0001, 0x90ff0002,
6454 0x02000001, 0xc00f0002, 0x90ff0001,
6460 0x0002fffe, 0x0200000f, 0x00000000,
6461 0x0200001f, 0x80000000, 0x900f0000,
6462 0x0200001f, 0x80000003, 0x900f0001,
6463 0x0200001f, 0x8001000a, 0x900f0002,
6464 0x0200001f, 0x80000005, 0x900f0003,
6465 0x0200001f, 0x80000000, 0xe00f0000,
6466 0x0200001f, 0x8001000a, 0xe00f0001,
6467 0x0200001f, 0x80000005, 0xe00f0002,
6468 0x0200001f, 0x8000000b, 0xe00f0003,
6469 0x0200001f, 0x80000004, 0xe00f0004,
6470 0x02000001, 0xe00f0000, 0x90e40000,
6471 0x02000001, 0xe00f0001, 0x90e40002,
6472 0x02000001, 0xe0070002, 0x90e40003,
6473 0x02000001, 0xe00f0003, 0x90ff0002,
6474 0x02000001, 0xe00f0004, 0x90ff0001,
6480 0x00000042, 0xb00f0000,
6481 0x00000002, 0x800f0000, 0x90e40000, 0xb0e40000,
6487 0x0200001f, 0x80000000, 0x900f0000,
6488 0x0200001f, 0x80000000, 0xb00f0000,
6489 0x02000001, 0x800f0800, 0x90e40000,
6495 0x0200001f, 0x8001000a, 0x900f0000,
6496 0x0200001f, 0x80000003, 0x900f0001,
6497 0x0200001f, 0x80000005, 0x900f0002,
6498 0x0200001f, 0x8000000b, 0x900f0003,
6499 0x0200001f, 0x80000000, 0x90031000,
6500 0x0200001f, 0x80000000, 0x900f1001,
6501 0x05000051, 0xa00f0000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
6502 0x02000001, 0x800f0000, 0x90e40000,
6503 0x03000002, 0x800f0800, 0x80e40000, 0x90e40003,
6504 0x02000001, 0x800f0001, 0x90e40001,
6505 0x03000005, 0x800f0801, 0x80e40001, 0x90e40002,
6506 0x02000001, 0x800f0802, 0x90441000,
6507 0x04000058, 0x800f0803, 0x90e41001, 0x90e40000, 0xa0e40000,
6508 0x02000001, 0x900f0800, 0x90ff0001,
6519 {vs_1_1, {{0, 0}, {3, 0}, {10, 1}, {5, 0}, {~0, ~0}}, {{5, 0}, {10, 1}, {0, 0}, {11, 0}, {4, 0}, {~0, ~0}}},
6520 {vs_2_0, {{0, 0}, {3, 0}, {10, 1}, {5, 0}, {~0, ~0}}, {{5, 0}, {10, 1}, {0, 0}, {11, 0}, {4, 0}, {~0, ~0}}},
6521 {vs_3_0, {{0, 0}, {3, 0}, {10, 1}, {5, 0}, {~0, ~0}}, {{0, 0}, {10, 1}, {5, 0}, {11, 0}, {4, 0}, {~0, ~0}}},
6522 {ps_1_1, {{5, 0}, {10, 0}, {~0, ~0}}, {{10, 0}, {~0, ~0}}},
6523 {ps_2_0, {{10, 0}, {5, 0}, {~0, ~0}}, {{10, 0}, {~0, ~0}}},
6524 {ps_3_0, {{10, 1}, {3,0}, {5, 0}, {11, 0}, {~0, ~0}}, {{10, 0}, {10, 1}, {10, 2}, {10, 3}, {12, 0}, {~0, ~0}}},
6527 unsigned int count, count2;
6551 ok(
count == count2,
"Semantics count %u differs from previous count %u.\n", count2,
count);
6555 && semantics[
j].UsageIndex ==
tests[
i].expected_input[
j].UsageIndex,
6556 "Unexpected semantic %u, %u, test %u, idx %u.\n",
6557 semantics[
j].
Usage, semantics[
j].UsageIndex,
i,
j);
6560 "Unexpected semantics count %u.\n",
count);
6565 ok(
count == count2,
"Semantics count %u differs from previous count %u.\n", count2,
count);
6570 "Unexpected semantic %u, %u, test %u, idx %u.\n",
6571 semantics[
j].
Usage, semantics[
j].UsageIndex,
i,
j);
6574 "Unexpected semantics count %u.\n",
count);
6580 ID3DXFragmentLinker *linker;
6582 IDirect3DDevice9 *
device;
6588 window =
CreateWindowA(
"static",
"d3dx9_test",
WS_OVERLAPPEDWINDOW, 0, 0, 640, 480,
NULL,
NULL,
NULL,
NULL);
6591 skip(
"Failed to create a D3D object.\n");
6603 skip(
"Failed to create a D3D device, hr %#x.\n",
hr);
6611 ok(!!linker,
"Unexpected linker %p.\n", linker);
6612 linker->lpVtbl->Release(linker);
6616 ok(!!linker,
"Unexpected linker %p.\n", linker);
6617 linker->lpVtbl->Release(linker);
6620 ok(!refcount,
"Device has %u references left.\n", refcount);
6622 ok(!refcount,
"The D3D object has %u references left.\n", refcount);
6628 0x00000042, 0xb00f0000,
6634 0x00000042, 0xb00f0000, 0xa0e40000,
6640 0x00000042, 0xb00f0000, 0xa0e40000, 0xa0e40001,
6646 0x00000040, 0xb00f0000,
6652 0x00000040, 0xb00f0000, 0xa0e40000,
6658 0x00000025, 0xb00f0000, 0xa0e40000, 0xa0e40001, 0xa0e40002,
6664 0x00000025, 0xb00f0000, 0xa0e40000,
6670 0x00000025, 0xb00f0000, 0xa0e40000, 0xa0e40001, 0xa0e40002,
6676 0x00000025, 0xb00f0000, 0xa0e40000,
6682 static const char disasm_vs[] =
" vs_1_1\n"
6683 " dcl_position v0\n"
6684 " dp4 oPos.x, v0, c0\n"
6685 " dp4 oPos.y, v0, c1\n"
6686 " dp4 oPos.z, v0, c2\n"
6687 " dp4 oPos.w, v0, c3\n";
6688 static const char disasm_ps[] =
" ps_1_1\n"
6689 " def c1, 1, 0, 0, 0\n"
6693 " mul r0, t0, r0\n";
6694 static const char disasm_ps_tex[] =
" ps_1_3\n"
6697 static const char disasm_ps_texld_1_4[] =
" ps_1_4\n"
6700 static const char disasm_ps_texld_2_0[] =
" ps_2_0\n"
6701 " texld t0, c0, c1\n"
6703 static const char disasm_ps_texcoord[] =
" ps_1_3\n"
6706 static const char disasm_ps_texcrd[] =
" ps_1_4\n"
6709 static const char disasm_ps_sincos_2_0[] =
" ps_2_0\n"
6710 " sincos t0, c0, c1, c2\n"
6712 static const char disasm_ps_sincos_3_0[] =
" ps_3_0\n"
6715 static const char disasm_vs_sincos_2_0[] =
" vs_2_0\n"
6716 " sincos a0, c0, c1, c2\n"
6718 static const char disasm_vs_sincos_3_0[] =
" vs_3_0\n"
6734 disassembly = (
void *)0xdeadbeef;
6738 ok(!
memcmp(
ptr, disasm_vs,
sizeof(disasm_vs) - 1),
6739 "Returned '%s', expected '%s'\n",
ptr, disasm_vs);
6743 disassembly = (
void *)0xdeadbeef;
6747 ok(!
memcmp(
ptr, disasm_ps,
sizeof(disasm_ps) - 1),
6748 "Returned '%s', expected '%s'\n",
ptr, disasm_ps);
6752 disassembly = (
void *)0xdeadbeef;
6756 ok(!
memcmp(
ptr, disasm_ps_tex,
sizeof(disasm_ps_tex) - 1),
6757 "Returned '%s', expected '%s'\n",
ptr, disasm_ps_tex);
6761 disassembly = (
void *)0xdeadbeef;
6765 ok(!
memcmp(
ptr, disasm_ps_texld_1_4,
sizeof(disasm_ps_texld_1_4) - 1),
6766 "Returned '%s', expected '%s'\n",
ptr, disasm_ps_texld_1_4);
6770 disassembly = (
void *)0xdeadbeef;
6774 ok(!
memcmp(
ptr, disasm_ps_texld_2_0,
sizeof(disasm_ps_texld_2_0) - 1),
6775 "Returned '%s', expected '%s'\n",
ptr, disasm_ps_texld_2_0);
6779 disassembly = (
void *)0xdeadbeef;
6783 ok(!
memcmp(
ptr, disasm_ps_texcoord,
sizeof(disasm_ps_texcoord) - 1),
6784 "Returned '%s', expected '%s'\n",
ptr, disasm_ps_texcoord);
6788 disassembly = (
void *)0xdeadbeef;
6792 ok(!
memcmp(
ptr, disasm_ps_texcrd,
sizeof(disasm_ps_texcrd) - 1),
6793 "Returned '%s', expected '%s'\n",
ptr, disasm_ps_texcrd);
6797 disassembly = (
void *)0xdeadbeef;
6801 ok(!
memcmp(
ptr, disasm_ps_sincos_2_0,
sizeof(disasm_ps_sincos_2_0) - 1),
6802 "Returned '%s', expected '%s'\n",
ptr, disasm_ps_sincos_2_0);
6806 disassembly = (
void *)0xdeadbeef;
6810 ok(!
memcmp(
ptr, disasm_ps_sincos_3_0,
sizeof(disasm_ps_sincos_3_0) - 1),
6811 "Returned '%s', expected '%s'\n",
ptr, disasm_ps_sincos_3_0);
6815 disassembly = (
void *)0xdeadbeef;
6819 ok(!
memcmp(
ptr, disasm_vs_sincos_2_0,
sizeof(disasm_vs_sincos_2_0) - 1),
6820 "Returned '%s', expected '%s'\n",
ptr, disasm_vs_sincos_2_0);
6824 disassembly = (
void *)0xdeadbeef;
6828 ok(!
memcmp(
ptr, disasm_vs_sincos_3_0,
sizeof(disasm_vs_sincos_3_0) - 1),
6829 "Returned '%s', expected '%s'\n",
ptr, disasm_vs_sincos_3_0);
int strcmp(const char *String1, const char *String2)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
static _Locale_mask_t ctable[256]
#define D3DXERR_INVALIDDATA
#define D3DPS_VERSION(major, minor)
#define D3DVS_VERSION(major, minor)
IDirect3D9 *WINAPI Direct3DCreate9(UINT SDKVersion)
#define IDirect3DDevice9_GetPixelShaderConstantB(p, a, b, c)
#define IDirect3DDevice9_GetPixelShaderConstantI(p, a, b, c)
#define IDirect3DDevice9_GetVertexShaderConstantI(p, a, b, c)
#define IDirect3D9_CreateDevice(p, a, b, c, d, e, f)
#define IDirect3DDevice9_GetPixelShaderConstantF(p, a, b, c)
#define IDirect3DDevice9_GetDeviceCaps(p, a)
#define IDirect3DDevice9_SetPixelShaderConstantI(p, a, b, c)
#define IDirect3DDevice9_SetVertexShaderConstantF(p, a, b, c)
#define IDirect3D9_Release(p)
#define IDirect3DDevice9_SetPixelShaderConstantF(p, a, b, c)
#define IDirect3DDevice9_GetVertexShaderConstantB(p, a, b, c)
#define IDirect3DDevice9_Release(p)
#define IDirect3DDevice9_SetVertexShaderConstantI(p, a, b, c)
#define IDirect3DDevice9_SetPixelShaderConstantB(p, a, b, c)
#define IDirect3DDevice9_GetVertexShaderConstantF(p, a, b, c)
#define IDirect3DDevice9_SetVertexShaderConstantB(p, a, b, c)
#define D3DERR_INVALIDCALL
struct ID3DXBuffer ID3DXBuffer
#define ID3DXBuffer_GetBufferPointer(p)
#define ID3DXBuffer_Release(p)
#define ID3DXConstantTable_GetBufferPointer(p)
#define ID3DXConstantTable_SetMatrixTransposeArray(p, a, b, c, d)
#define ID3DXConstantTable_SetBool(p, a, b, c)
#define ID3DXConstantTable_SetIntArray(p, a, b, c, d)
#define ID3DXConstantTable_GetBufferSize(p)
#define ID3DXConstantTable_GetDesc(p, a)
#define ID3DXConstantTable_GetSamplerIndex(p, a)
#define ID3DXConstantTable_GetConstantElement(p, a, b)
#define ID3DXConstantTable_SetVectorArray(p, a, b, c, d)
#define ID3DXConstantTable_Release(p)
#define ID3DXConstantTable_SetMatrixPointerArray(p, a, b, c, d)
#define ID3DXConstantTable_SetMatrixArray(p, a, b, c, d)
#define ID3DXConstantTable_GetConstantDesc(p, a, b, c)
#define ID3DXConstantTable_SetValue(p, a, b, c, d)
#define ID3DXConstantTable_SetMatrixTranspose(p, a, b, c)
#define ID3DXConstantTable_SetBoolArray(p, a, b, c, d)
enum _D3DXREGISTER_SET D3DXREGISTER_SET
#define ID3DXConstantTable_SetDefaults(p, a)
#define ID3DXConstantTable_SetMatrixTransposePointerArray(p, a, b, c, d)
#define ID3DXConstantTable_SetVector(p, a, b, c)
#define ID3DXConstantTable_SetFloat(p, a, b, c)
#define ID3DXConstantTable_SetFloatArray(p, a, b, c, d)
#define ID3DXConstantTable_SetMatrix(p, a, b, c)
#define ID3DXConstantTable_GetConstant(p, a, b)
#define ID3DXConstantTable_SetInt(p, a, b, c)
#define ID3DXConstantTable_GetConstantByName(p, a, b)
HRESULT WINAPI D3DXGetShaderConstantTableEx(const DWORD *byte_code, DWORD flags, ID3DXConstantTable **constant_table)
HRESULT WINAPI D3DXCreateFragmentLinkerEx(IDirect3DDevice9 *device, UINT size, DWORD flags, ID3DXFragmentLinker **linker)
UINT WINAPI D3DXGetShaderSize(const DWORD *byte_code)
HRESULT WINAPI D3DXGetShaderOutputSemantics(const DWORD *byte_code, D3DXSEMANTIC *semantics, UINT *count)
HRESULT WINAPI D3DXFindShaderComment(const DWORD *byte_code, DWORD fourcc, const void **data, UINT *size)
DWORD WINAPI D3DXGetShaderVersion(const DWORD *byte_code)
HRESULT WINAPI D3DXGetShaderSamplers(const DWORD *byte_code, const char **samplers, UINT *count)
HRESULT WINAPI D3DXDisassembleShader(const DWORD *shader, BOOL colorcode, const char *comments, ID3DXBuffer **disassembly)
HRESULT WINAPI D3DXGetShaderInputSemantics(const DWORD *byte_code, D3DXSEMANTIC *semantics, UINT *count)
HRESULT WINAPI D3DXGetShaderConstantTable(const DWORD *byte_code, ID3DXConstantTable **constant_table)
HRESULT WINAPI D3DXCreateFragmentLinker(IDirect3DDevice9 *device, UINT size, ID3DXFragmentLinker **linker)
GLint GLint GLint GLint GLint x
GLuint GLuint GLsizei count
GLuint GLuint GLsizei GLenum type
GLint GLint GLint GLint GLint GLint y
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLubyte GLubyte GLubyte GLubyte w
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint vn
_Must_inspect_result_ _In_ USAGE _In_ USHORT _In_ USAGE Usage
UCHAR ab[sizeof("Hello World!") -1]
static CRYPT_DATA_BLOB b1[]
static const WCHAR desc[]
static const struct registerset_test registerset_test_vector_float[]
static const struct registerset_constants registerset_constants_matrix_column_clamp[]
static const DWORD registerset_blob_vector_array[]
static const struct registerset_constants registerset_constants_scalar_bool_float[]
static const DWORD ps_texcoord[]
static const struct registerset_test registerset_test_vector_array_float[]
static const DWORD registerset_blob_scalar_array[]
static const DWORD ps_texcrd[]
static const DWORD shader_with_ctab_constants[]
static const struct registerset_test registerset_test_row_array_bool[]
static const struct registerset_constants registerset_constants_special_int[]
static const float mat3_default_value[]
static const struct registerset_constants registerset_constants_struct_bool[]
static const struct registerset_test registerset_test_row_array_bool_float[]
static const struct registerset_constants registerset_constants_scalar_array_bool_float[]
static const struct registerset_constants registerset_constants_row_int_float[]
static const DWORD shader_invalid[]
static const struct registerset_constants registerset_constants_struct_struct_bool_float[]
static const struct registerset_constants registerset_constants_column_array_int[]
static void test_shader_semantics(void)
static const struct registerset_test registerset_test_struct_int_float[]
static UINT registerset_compare(IDirect3DDevice9 *device, BOOL is_vs, D3DXREGISTER_SET regset, UINT start, UINT in_count, const DWORD *expected)
static const struct registerset_test registerset_test_scalar_int[]
static const struct registerset_test registerset_test_matrix_column_clamp[]
static const struct registerset_test registerset_test_row_float[]
static void test_get_shader_size(void)
static const DWORD registerset_blob_special_int[]
static const struct registerset_constants registerset_constants_scalar_float[]
static const struct registerset_test registerset_test_vector_int_float[]
static const DWORD registerset_blob_row[]
@ SetMatrixTransposePointerArray
@ SetMatrixTransposeArray
const struct @1694 test_get_shader_constant_variables_data[]
static const DWORD simple_7ffe[]
static void test_constant_table(const char *test_name, const DWORD *ctable_fn, const D3DXCONSTANT_DESC *expecteds, UINT count)
static const struct registerset_constants registerset_constants_vector_array_bool_float[]
static const struct registerset_test registerset_test_struct_array_int_float[]
static void test_SetValue(IDirect3DDevice9 *device)
static const DWORD registerset_blob_column[]
static const DWORD registerset_blob_struct[]
static const struct registerset_test registerset_test_scalar_bool[]
static const struct registerset_test registerset_test_vector_array_bool[]
const struct registerset_constants * constants
static const DWORD test_get_shader_constant_variables_blob[]
static const struct registerset_constants registerset_constants_row_array_int_float[]
static const struct registerset_constants registerset_constants_column_array_bool_float[]
static const struct registerset_constants registerset_constants_vector_array_bool[]
static const struct registerset_constants registerset_constants_struct_struct_int_float[]
static const DWORD simple_vs[]
static void test_get_sampler_index(void)
static void test_find_shader_comment(void)
static const struct registerset_test registerset_test_struct_struct_bool[]
static const DWORD registerset_blob_vector[]
static const struct registerset_constants registerset_constants_row_float[]
static const struct registerset_constants registerset_constants_row_array_bool_float[]
static const struct registerset_test registerset_test_struct_int[]
static const DWORD fx_shader_with_ctab[]
static const DWORD shader_empty[]
static const DWORD ctab_samplers[]
static const struct registerset_constants registerset_constants_struct_int[]
static void test_get_shader_samplers(void)
static const struct registerset_test registerset_test_struct_array_int[]
static const D3DXCONSTANT_DESC ctab_samplers_expected[]
static const DWORD registerset_blob_row_array[]
static const struct registerset_constants registerset_constants_vector_array_int_float[]
static const struct registerset_test registerset_test_scalar_bool_float[]
static void test_registerset_defaults(void)
static const struct registerset_test registerset_test_vector_array_int_float[]
static const struct registerset_test registerset_test_column_array_bool[]
static const float flt_default_value[]
static const DWORD ps_sincos_3_0[]
static const DWORD shader_with_ctab[]
static const struct registerset_constants registerset_constants_column_int_float[]
static const DWORD simple_ps[]
static const float vec4_default_value[]
static const struct registerset_constants registerset_constants_row_bool[]
static const struct registerset_test registerset_test_column_int[]
static const DWORD simple_7fff[]
static const struct registerset_test registerset_test_struct_struct_float[]
static void registerset_clear(IDirect3DDevice9 *device)
static void test_registerset(void)
static const struct registerset_test registerset_test_struct_bool[]
static const struct registerset_constants registerset_constants_struct_struct_int[]
static const struct registerset_constants registerset_constants_column_array_int_float[]
static void test_setting_matrices_table(IDirect3DDevice9 *device)
static const struct registerset_constants registerset_constants_struct_bool_float[]
static const float arr_default_value[]
static const struct registerset_test registerset_test_scalar_array_bool_float[]
static void test_get_shader_constant_variables(void)
static const struct registerset_constants registerset_constants_row_int[]
static const struct registerset_test registerset_test_struct_struct_bool_float[]
static UINT registerset_compare_all(IDirect3DDevice9 *device, BOOL is_vs, D3DXREGISTER_SET regset, UINT start, UINT in_count, const DWORD *expected)
static const struct registerset_constants registerset_constants_struct_array_bool_float[]
static const struct registerset_test registerset_test_struct_array_bool[]
static const DWORD get_shader_samplers_blob[]
static const DWORD registerset_blob_column_array[]
static const DWORD registerset_blob_matrix_column_clamp[]
static const struct registerset_test registerset_test_column_bool_float[]
static const DWORD ps_sincos_2_0[]
static const DWORD registerset_blob_scalar[]
static const struct registerset_test registerset_test_vector_bool[]
static const struct registerset_constants registerset_constants_column_array_bool[]
static const DWORD ctab_matrices[]
static const DWORD registerset_blob_struct_struct[]
static const DWORD vs_sincos_3_0[]
static const struct registerset_constants registerset_constants_row_array_float[]
static const struct registerset_constants registerset_constants_column_int[]
static const struct registerset_constants registerset_constants_scalar_array_int_float[]
static const struct registerset_test registerset_test_vector_bool_float[]
static const struct registerset_test registerset_test_row_array_int_float[]
static const struct registerset_test registerset_test_vector_int[]
static void test_constant_tables(void)
static const DWORD ctab_matrices2[]
static const struct registerset_test registerset_test_row_array_float[]
static const struct registerset_test registerset_test_struct_float[]
static const struct registerset_test registerset_test_scalar_array_float[]
static const struct registerset_constants registerset_constants_bigvec_float[]
static const struct registerset_test registerset_test_scalar_array_int_float[]
static const struct registerset_test registerset_test_row_int[]
static const struct registerset_test registerset_test_column_array_bool_float[]
static const struct registerset_constants registerset_constants_struct_struct_bool[]
static const DWORD ctab_basic[]
static const DWORD ps_texld_1_4[]
static const struct registerset_constants registerset_constants_scalar_int[]
static const struct registerset_constants registerset_constants_column_bool_float[]
static const struct registerset_constants registerset_constants_vector_bool[]
static const struct @1695 registerset_data[]
static const struct registerset_constants registerset_constants_scalar_int_float[]
static const struct registerset_constants registerset_constants_vector_bool_float[]
static const struct registerset_test registerset_test_vector_array_int[]
static const struct registerset_test registerset_test_column_array_int_float[]
static const struct registerset_test registerset_test_struct_array_float[]
static const DWORD vs_sincos_2_0[]
static const D3DXCONSTANT_DESC ctab_matrices_expected[]
static const DWORD ps_texld_2_0[]
static const struct registerset_test registerset_test_struct_struct_int[]
static const struct registerset_constants registerset_constants_scalar_bool[]
static const DWORD simple_tx[]
static const struct registerset_test registerset_test_vector_array_bool_float[]
static const D3DXCONSTANT_DESC ctab_basic_expected[]
static void test_setting_basic_table(IDirect3DDevice9 *device)
static const struct registerset_constants registerset_constants_vector_array_float[]
static const struct registerset_test registerset_test_scalar_array_int[]
static const struct registerset_constants registerset_constants_vector_int_float[]
static const struct registerset_test registerset_test_scalar_float[]
static const struct registerset_test registerset_test_column_float[]
static const struct registerset_test registerset_test_scalar_int_float[]
static const struct registerset_test registerset_test_struct_bool_float[]
static const D3DXCONSTANT_DESC ctab_with_default_values_expected[]
static const struct registerset_test registerset_test_row_bool_float[]
static const struct registerset_constants registerset_constants_row_bool_float[]
static const struct registerset_constants registerset_constants_struct_struct_float[]
static void test_get_shader_version(void)
static const struct registerset_test registerset_test_column_array_float[]
static const DWORD ctab_arrays[]
static const DWORD registerset_blob_bigvec[]
static const struct registerset_constants registerset_constants_column_array_float[]
static void test_setting_constants(void)
static const struct registerset_test registerset_test_column_int_float[]
static const struct registerset_test registerset_test_bigvec_float[]
static const struct registerset_test registerset_test_struct_array_bool_float[]
static const struct registerset_constants registerset_constants_row_array_int[]
static const struct registerset_constants registerset_constants_struct_array_int_float[]
static const struct registerset_constants registerset_constants_vector_int[]
static void test_setting_arrays_table(IDirect3DDevice9 *device)
static void test_get_shader_constant_table_ex(void)
static const struct registerset_constants registerset_constants_scalar_array_bool[]
static HRESULT registerset_apply(ID3DXConstantTable *ctable, IDirect3DDevice9 *device, D3DXHANDLE constant, UINT index, DWORD count, enum Type type)
static const struct registerset_constants registerset_constants_column_bool[]
static const DWORD shader_zero[]
static const struct registerset_test registerset_test_scalar_array_bool[]
static void test_disassemble_shader(void)
static const struct registerset_constants registerset_constants_vector_array_int[]
static const DWORD registerset_blob_struct_array[]
static const DWORD simple_fx[]
static const struct registerset_constants registerset_constants_struct_array_float[]
static const struct registerset_constants registerset_constants_column_float[]
static const struct registerset_constants registerset_constants_struct_array_int[]
static const DWORD ps_tex[]
static const struct registerset_constants registerset_constants_struct_array_bool[]
static const D3DXCONSTANT_DESC ctab_matrices2_expected[]
static const D3DXCONSTANT_DESC ctab_arrays_expected[]
static const struct registerset_test registerset_test_row_array_int[]
static const struct registerset_constants registerset_constants_struct_float[]
static const DWORD registerset_test_input[][REGISTER_OUTPUT_SIZE]
static const struct registerset_test registerset_test_row_int_float[]
static void test_fragment_linker(void)
const struct registerset_test * tests
static const struct registerset_test registerset_test_column_array_int[]
static const struct registerset_constants registerset_constants_scalar_array_int[]
#define REGISTER_OUTPUT_SIZE
static const struct registerset_constants registerset_constants_struct_int_float[]
static const DWORD ctab_with_default_values[]
static const DWORD shader_with_invalid_ctab[]
static const struct registerset_constants registerset_constants_vector_float[]
static const struct @1696 registerset_defaults_data[]
static const struct registerset_constants registerset_constants_row_array_bool[]
static const struct registerset_test registerset_test_column_bool[]
static const struct registerset_test registerset_test_struct_struct_int_float[]
static const float mat4_default_value[]
static const struct registerset_test registerset_test_row_bool[]
static void test_SetDefaults(IDirect3DDevice9 *device)
static const struct registerset_constants registerset_constants_scalar_array_float[]
static const char * test_name
static HMODULE MODULEINFO DWORD cb
static IHTMLWindow2 * window
static const struct stream_output expected_output[]
#define WS_OVERLAPPEDWINDOW
#define D3DADAPTER_DEFAULT
#define D3DCREATE_SOFTWARE_VERTEXPROCESSING
#define D3DCREATE_MIXED_VERTEXPROCESSING
DWORD VertexShaderVersion
const void * DefaultValue
D3DXPARAMETER_CLASS Class
D3DXREGISTER_SET RegisterSet
DWORD out[REGISTER_OUTPUT_SIZE]
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI DestroyWindow(_In_ HWND)