| cbuffer cbuffer_a : register(b0, space0) { |
| uint4 a[4]; |
| }; |
| |
| float2x2 a_load_1(uint offset) { |
| const uint scalar_offset = ((offset + 0u)) / 4; |
| uint4 ubo_load = a[scalar_offset / 4]; |
| const uint scalar_offset_1 = ((offset + 8u)) / 4; |
| uint4 ubo_load_1 = a[scalar_offset_1 / 4]; |
| return float2x2(asfloat(((scalar_offset & 2) ? ubo_load.zw : ubo_load.xy)), asfloat(((scalar_offset_1 & 2) ? ubo_load_1.zw : ubo_load_1.xy))); |
| } |
| |
| typedef float2x2 a_load_ret[4]; |
| a_load_ret a_load(uint offset) { |
| float2x2 arr[4] = (float2x2[4])0; |
| { |
| for(uint i = 0u; (i < 4u); i = (i + 1u)) { |
| arr[i] = a_load_1((offset + (i * 16u))); |
| } |
| } |
| return arr; |
| } |
| |
| [numthreads(1, 1, 1)] |
| void f() { |
| const float2x2 l_a[4] = a_load(0u); |
| const float2x2 l_a_i = a_load_1(32u); |
| const float2 l_a_i_i = asfloat(a[2].zw); |
| return; |
| } |