| cbuffer cbuffer_u : register(b0) { |
| uint4 u[4]; |
| }; |
| RWByteAddressBuffer s : register(u1); |
| |
| float a(float2x2 a_1[4]) { |
| return a_1[0][0].x; |
| } |
| |
| float b(float2x2 m) { |
| return m[0].x; |
| } |
| |
| float c(float2 v) { |
| return v.x; |
| } |
| |
| float d(float f_1) { |
| return f_1; |
| } |
| |
| float2x2 u_load_1(uint offset) { |
| const uint scalar_offset = ((offset + 0u)) / 4; |
| uint4 ubo_load = u[scalar_offset / 4]; |
| const uint scalar_offset_1 = ((offset + 8u)) / 4; |
| uint4 ubo_load_1 = u[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 u_load_ret[4]; |
| u_load_ret u_load(uint offset) { |
| float2x2 arr[4] = (float2x2[4])0; |
| { |
| for(uint i = 0u; (i < 4u); i = (i + 1u)) { |
| arr[i] = u_load_1((offset + (i * 16u))); |
| } |
| } |
| return arr; |
| } |
| |
| [numthreads(1, 1, 1)] |
| void f() { |
| float tint_symbol = a(u_load(0u)); |
| float tint_symbol_1 = b(u_load_1(16u)); |
| float tint_symbol_2 = c(asfloat(u[1].xy).yx); |
| float tint_symbol_3 = d(asfloat(u[1].xy).yx.x); |
| s.Store(0u, asuint((((tint_symbol + tint_symbol_1) + tint_symbol_2) + tint_symbol_3))); |
| return; |
| } |