@@ -258,73 +258,73 @@ float4 texture_sample() : SV_Target0
258
258
{
259
259
float4 a = (float4 )0 ;
260
260
261
- float2 tc = (0.5 ).xx;
262
- float3 tc3_ = (0.5 ).xxx;
263
- int2 offset = int2 (int (3 ), int (1 ));
261
+ float2 _e1 = (0.5 ).xx;
262
+ float3 _e3 = (0.5 ).xxx;
263
+ int2 _e6 = int2 (int (3 ), int (1 ));
264
264
float4 _e11 = image_1d.Sample (sampler_reg, 0.5 );
265
265
float4 _e12 = a;
266
266
a = (_e12 + _e11);
267
- float4 _e16 = image_2d.Sample (sampler_reg, tc );
267
+ float4 _e16 = image_2d.Sample (sampler_reg, _e1 );
268
268
float4 _e17 = a;
269
269
a = (_e17 + _e16);
270
- float4 _e24 = image_2d.Sample (sampler_reg, tc , int2 (int2 (int (3 ), int (1 ))));
270
+ float4 _e24 = image_2d.Sample (sampler_reg, _e1 , int2 (int2 (int (3 ), int (1 ))));
271
271
float4 _e25 = a;
272
272
a = (_e25 + _e24);
273
- float4 _e29 = image_2d.SampleLevel (sampler_reg, tc , 2.3 );
273
+ float4 _e29 = image_2d.SampleLevel (sampler_reg, _e1 , 2.3 );
274
274
float4 _e30 = a;
275
275
a = (_e30 + _e29);
276
- float4 _e34 = image_2d.SampleLevel (sampler_reg, tc , 2.3 , int2 (int2 (int (3 ), int (1 ))));
276
+ float4 _e34 = image_2d.SampleLevel (sampler_reg, _e1 , 2.3 , int2 (int2 (int (3 ), int (1 ))));
277
277
float4 _e35 = a;
278
278
a = (_e35 + _e34);
279
- float4 _e40 = image_2d.SampleBias (sampler_reg, tc , 2.0 , int2 (int2 (int (3 ), int (1 ))));
279
+ float4 _e40 = image_2d.SampleBias (sampler_reg, _e1 , 2.0 , int2 (int2 (int (3 ), int (1 ))));
280
280
float4 _e41 = a;
281
281
a = (_e41 + _e40);
282
- float4 _e46 = image_2d_array.Sample (sampler_reg, float3 (tc , 0u));
282
+ float4 _e46 = image_2d_array.Sample (sampler_reg, float3 (_e1 , 0u));
283
283
float4 _e47 = a;
284
284
a = (_e47 + _e46);
285
- float4 _e52 = image_2d_array.Sample (sampler_reg, float3 (tc , 0u), int2 (int2 (int (3 ), int (1 ))));
285
+ float4 _e52 = image_2d_array.Sample (sampler_reg, float3 (_e1 , 0u), int2 (int2 (int (3 ), int (1 ))));
286
286
float4 _e53 = a;
287
287
a = (_e53 + _e52);
288
- float4 _e58 = image_2d_array.SampleLevel (sampler_reg, float3 (tc , 0u), 2.3 );
288
+ float4 _e58 = image_2d_array.SampleLevel (sampler_reg, float3 (_e1 , 0u), 2.3 );
289
289
float4 _e59 = a;
290
290
a = (_e59 + _e58);
291
- float4 _e64 = image_2d_array.SampleLevel (sampler_reg, float3 (tc , 0u), 2.3 , int2 (int2 (int (3 ), int (1 ))));
291
+ float4 _e64 = image_2d_array.SampleLevel (sampler_reg, float3 (_e1 , 0u), 2.3 , int2 (int2 (int (3 ), int (1 ))));
292
292
float4 _e65 = a;
293
293
a = (_e65 + _e64);
294
- float4 _e71 = image_2d_array.SampleBias (sampler_reg, float3 (tc , 0u), 2.0 , int2 (int2 (int (3 ), int (1 ))));
294
+ float4 _e71 = image_2d_array.SampleBias (sampler_reg, float3 (_e1 , 0u), 2.0 , int2 (int2 (int (3 ), int (1 ))));
295
295
float4 _e72 = a;
296
296
a = (_e72 + _e71);
297
- float4 _e77 = image_2d_array.Sample (sampler_reg, float3 (tc , int (0 )));
297
+ float4 _e77 = image_2d_array.Sample (sampler_reg, float3 (_e1 , int (0 )));
298
298
float4 _e78 = a;
299
299
a = (_e78 + _e77);
300
- float4 _e83 = image_2d_array.Sample (sampler_reg, float3 (tc , int (0 )), int2 (int2 (int (3 ), int (1 ))));
300
+ float4 _e83 = image_2d_array.Sample (sampler_reg, float3 (_e1 , int (0 )), int2 (int2 (int (3 ), int (1 ))));
301
301
float4 _e84 = a;
302
302
a = (_e84 + _e83);
303
- float4 _e89 = image_2d_array.SampleLevel (sampler_reg, float3 (tc , int (0 )), 2.3 );
303
+ float4 _e89 = image_2d_array.SampleLevel (sampler_reg, float3 (_e1 , int (0 )), 2.3 );
304
304
float4 _e90 = a;
305
305
a = (_e90 + _e89);
306
- float4 _e95 = image_2d_array.SampleLevel (sampler_reg, float3 (tc , int (0 )), 2.3 , int2 (int2 (int (3 ), int (1 ))));
306
+ float4 _e95 = image_2d_array.SampleLevel (sampler_reg, float3 (_e1 , int (0 )), 2.3 , int2 (int2 (int (3 ), int (1 ))));
307
307
float4 _e96 = a;
308
308
a = (_e96 + _e95);
309
- float4 _e102 = image_2d_array.SampleBias (sampler_reg, float3 (tc , int (0 )), 2.0 , int2 (int2 (int (3 ), int (1 ))));
309
+ float4 _e102 = image_2d_array.SampleBias (sampler_reg, float3 (_e1 , int (0 )), 2.0 , int2 (int2 (int (3 ), int (1 ))));
310
310
float4 _e103 = a;
311
311
a = (_e103 + _e102);
312
- float4 _e108 = image_cube_array.Sample (sampler_reg, float4 (tc3_ , 0u));
312
+ float4 _e108 = image_cube_array.Sample (sampler_reg, float4 (_e3 , 0u));
313
313
float4 _e109 = a;
314
314
a = (_e109 + _e108);
315
- float4 _e114 = image_cube_array.SampleLevel (sampler_reg, float4 (tc3_ , 0u), 2.3 );
315
+ float4 _e114 = image_cube_array.SampleLevel (sampler_reg, float4 (_e3 , 0u), 2.3 );
316
316
float4 _e115 = a;
317
317
a = (_e115 + _e114);
318
- float4 _e121 = image_cube_array.SampleBias (sampler_reg, float4 (tc3_ , 0u), 2.0 );
318
+ float4 _e121 = image_cube_array.SampleBias (sampler_reg, float4 (_e3 , 0u), 2.0 );
319
319
float4 _e122 = a;
320
320
a = (_e122 + _e121);
321
- float4 _e127 = image_cube_array.Sample (sampler_reg, float4 (tc3_ , int (0 )));
321
+ float4 _e127 = image_cube_array.Sample (sampler_reg, float4 (_e3 , int (0 )));
322
322
float4 _e128 = a;
323
323
a = (_e128 + _e127);
324
- float4 _e133 = image_cube_array.SampleLevel (sampler_reg, float4 (tc3_ , int (0 )), 2.3 );
324
+ float4 _e133 = image_cube_array.SampleLevel (sampler_reg, float4 (_e3 , int (0 )), 2.3 );
325
325
float4 _e134 = a;
326
326
a = (_e134 + _e133);
327
- float4 _e140 = image_cube_array.SampleBias (sampler_reg, float4 (tc3_ , int (0 )), 2.0 );
327
+ float4 _e140 = image_cube_array.SampleBias (sampler_reg, float4 (_e3 , int (0 )), 2.0 );
328
328
float4 _e141 = a;
329
329
a = (_e141 + _e140);
330
330
float4 _e143 = a;
@@ -335,30 +335,30 @@ float texture_sample_comparison() : SV_Target0
335
335
{
336
336
float a_1 = (float )0 ;
337
337
338
- float2 tc_1 = (0.5 ).xx;
339
- float3 tc3_1 = (0.5 ).xxx;
340
- float _e8 = image_2d_depth.SampleCmp (sampler_cmp, tc_1 , 0.5 );
338
+ float2 tc = (0.5 ).xx;
339
+ float3 tc3_ = (0.5 ).xxx;
340
+ float _e8 = image_2d_depth.SampleCmp (sampler_cmp, tc , 0.5 );
341
341
float _e9 = a_1;
342
342
a_1 = (_e9 + _e8);
343
- float _e14 = image_2d_array_depth.SampleCmp (sampler_cmp, float3 (tc_1 , 0u), 0.5 );
343
+ float _e14 = image_2d_array_depth.SampleCmp (sampler_cmp, float3 (tc , 0u), 0.5 );
344
344
float _e15 = a_1;
345
345
a_1 = (_e15 + _e14);
346
- float _e20 = image_2d_array_depth.SampleCmp (sampler_cmp, float3 (tc_1 , int (0 )), 0.5 );
346
+ float _e20 = image_2d_array_depth.SampleCmp (sampler_cmp, float3 (tc , int (0 )), 0.5 );
347
347
float _e21 = a_1;
348
348
a_1 = (_e21 + _e20);
349
- float _e25 = image_cube_depth.SampleCmp (sampler_cmp, tc3_1 , 0.5 );
349
+ float _e25 = image_cube_depth.SampleCmp (sampler_cmp, tc3_ , 0.5 );
350
350
float _e26 = a_1;
351
351
a_1 = (_e26 + _e25);
352
- float _e30 = image_2d_depth.SampleCmpLevelZero (sampler_cmp, tc_1 , 0.5 );
352
+ float _e30 = image_2d_depth.SampleCmpLevelZero (sampler_cmp, tc , 0.5 );
353
353
float _e31 = a_1;
354
354
a_1 = (_e31 + _e30);
355
- float _e36 = image_2d_array_depth.SampleCmpLevelZero (sampler_cmp, float3 (tc_1 , 0u), 0.5 );
355
+ float _e36 = image_2d_array_depth.SampleCmpLevelZero (sampler_cmp, float3 (tc , 0u), 0.5 );
356
356
float _e37 = a_1;
357
357
a_1 = (_e37 + _e36);
358
- float _e42 = image_2d_array_depth.SampleCmpLevelZero (sampler_cmp, float3 (tc_1 , int (0 )), 0.5 );
358
+ float _e42 = image_2d_array_depth.SampleCmpLevelZero (sampler_cmp, float3 (tc , int (0 )), 0.5 );
359
359
float _e43 = a_1;
360
360
a_1 = (_e43 + _e42);
361
- float _e47 = image_cube_depth.SampleCmpLevelZero (sampler_cmp, tc3_1 , 0.5 );
361
+ float _e47 = image_cube_depth.SampleCmpLevelZero (sampler_cmp, tc3_ , 0.5 );
362
362
float _e48 = a_1;
363
363
a_1 = (_e48 + _e47);
364
364
float _e50 = a_1;
@@ -367,22 +367,22 @@ float texture_sample_comparison() : SV_Target0
367
367
368
368
float4 gather () : SV_Target0
369
369
{
370
- float2 tc_2 = (0.5 ).xx;
371
- float4 s2d = image_2d.GatherGreen (sampler_reg, tc_2 );
372
- float4 s2d_offset = image_2d.GatherAlpha (sampler_reg, tc_2 , int2 (int2 (int (3 ), int (1 ))));
373
- float4 s2d_depth = image_2d_depth.GatherCmp (sampler_cmp, tc_2 , 0.5 );
374
- float4 s2d_depth_offset = image_2d_depth.GatherCmp (sampler_cmp, tc_2 , 0.5 , int2 (int2 (int (3 ), int (1 ))));
375
- uint4 u = image_2d_u32_.Gather (sampler_reg, tc_2 );
376
- int4 i = image_2d_i32_.Gather (sampler_reg, tc_2 );
370
+ float2 tc_1 = (0.5 ).xx;
371
+ float4 s2d = image_2d.GatherGreen (sampler_reg, tc_1 );
372
+ float4 s2d_offset = image_2d.GatherAlpha (sampler_reg, tc_1 , int2 (int2 (int (3 ), int (1 ))));
373
+ float4 s2d_depth = image_2d_depth.GatherCmp (sampler_cmp, tc_1 , 0.5 );
374
+ float4 s2d_depth_offset = image_2d_depth.GatherCmp (sampler_cmp, tc_1 , 0.5 , int2 (int2 (int (3 ), int (1 ))));
375
+ uint4 u = image_2d_u32_.Gather (sampler_reg, tc_1 );
376
+ int4 i = image_2d_i32_.Gather (sampler_reg, tc_1 );
377
377
float4 f = (float4 (u) + float4 (i));
378
378
return ((((s2d + s2d_offset) + s2d_depth) + s2d_depth_offset) + f);
379
379
}
380
380
381
381
float4 depth_no_comparison () : SV_Target0
382
382
{
383
- float2 tc_3 = (0.5 ).xx;
384
- float s2d_1 = image_2d_depth.Sample (sampler_reg, tc_3 );
385
- float4 s2d_gather = image_2d_depth.Gather (sampler_reg, tc_3 );
386
- float s2d_level = image_2d_depth.SampleLevel (sampler_reg, tc_3 , int (1 ));
383
+ float2 tc_2 = (0.5 ).xx;
384
+ float s2d_1 = image_2d_depth.Sample (sampler_reg, tc_2 );
385
+ float4 s2d_gather = image_2d_depth.Gather (sampler_reg, tc_2 );
386
+ float s2d_level = image_2d_depth.SampleLevel (sampler_reg, tc_2 , int (1 ));
387
387
return (((s2d_1).xxxx + s2d_gather) + (s2d_level).xxxx);
388
388
}
0 commit comments