| cbuffer _UniformBuffer : register(b0, space0) |
| { |
| float4 _11_colorGreen : packoffset(c0); |
| float4 _11_colorRed : packoffset(c1); |
| row_major float3x3 _11_testMatrix3x3 : packoffset(c2); |
| row_major float4x4 _11_testMatrix4x4 : packoffset(c5); |
| }; |
| |
| |
| static float4 sk_FragColor; |
| |
| struct SPIRV_Cross_Output |
| { |
| float4 sk_FragColor : SV_Target0; |
| }; |
| |
| bool test4x4_b() |
| { |
| float4 values = float4(1.0f, 2.0f, 3.0f, 4.0f); |
| float4x4 _matrix = float4x4(0.0f.xxxx, 0.0f.xxxx, 0.0f.xxxx, 0.0f.xxxx); |
| for (int index = 0; index < 4; index++) |
| { |
| _matrix[index] = values; |
| values += 4.0f.xxxx; |
| } |
| return ((all(bool4(_matrix[0].x == _11_testMatrix4x4[0].x, _matrix[0].y == _11_testMatrix4x4[0].y, _matrix[0].z == _11_testMatrix4x4[0].z, _matrix[0].w == _11_testMatrix4x4[0].w)) && all(bool4(_matrix[1].x == _11_testMatrix4x4[1].x, _matrix[1].y == _11_testMatrix4x4[1].y, _matrix[1].z == _11_testMatrix4x4[1].z, _matrix[1].w == _11_testMatrix4x4[1].w))) && all(bool4(_matrix[2].x == _11_testMatrix4x4[2].x, _matrix[2].y == _11_testMatrix4x4[2].y, _matrix[2].z == _11_testMatrix4x4[2].z, _matrix[2].w == _11_testMatrix4x4[2].w))) && all(bool4(_matrix[3].x == _11_testMatrix4x4[3].x, _matrix[3].y == _11_testMatrix4x4[3].y, _matrix[3].z == _11_testMatrix4x4[3].z, _matrix[3].w == _11_testMatrix4x4[3].w)); |
| } |
| |
| float4 main(float2 _85) |
| { |
| float3 _RESERVED_IDENTIFIER_FIXUP_1_values = float3(1.0f, 2.0f, 3.0f); |
| float3x3 _RESERVED_IDENTIFIER_FIXUP_0_matrix = float3x3(0.0f.xxx, 0.0f.xxx, 0.0f.xxx); |
| for (int _RESERVED_IDENTIFIER_FIXUP_2_index = 0; _RESERVED_IDENTIFIER_FIXUP_2_index < 3; _RESERVED_IDENTIFIER_FIXUP_2_index++) |
| { |
| _RESERVED_IDENTIFIER_FIXUP_0_matrix[_RESERVED_IDENTIFIER_FIXUP_2_index] = _RESERVED_IDENTIFIER_FIXUP_1_values; |
| _RESERVED_IDENTIFIER_FIXUP_1_values += 3.0f.xxx; |
| } |
| bool _132 = false; |
| if ((all(bool3(_RESERVED_IDENTIFIER_FIXUP_0_matrix[0].x == _11_testMatrix3x3[0].x, _RESERVED_IDENTIFIER_FIXUP_0_matrix[0].y == _11_testMatrix3x3[0].y, _RESERVED_IDENTIFIER_FIXUP_0_matrix[0].z == _11_testMatrix3x3[0].z)) && all(bool3(_RESERVED_IDENTIFIER_FIXUP_0_matrix[1].x == _11_testMatrix3x3[1].x, _RESERVED_IDENTIFIER_FIXUP_0_matrix[1].y == _11_testMatrix3x3[1].y, _RESERVED_IDENTIFIER_FIXUP_0_matrix[1].z == _11_testMatrix3x3[1].z))) && all(bool3(_RESERVED_IDENTIFIER_FIXUP_0_matrix[2].x == _11_testMatrix3x3[2].x, _RESERVED_IDENTIFIER_FIXUP_0_matrix[2].y == _11_testMatrix3x3[2].y, _RESERVED_IDENTIFIER_FIXUP_0_matrix[2].z == _11_testMatrix3x3[2].z))) |
| { |
| _132 = test4x4_b(); |
| } |
| else |
| { |
| _132 = false; |
| } |
| float4 _133 = 0.0f.xxxx; |
| if (_132) |
| { |
| _133 = _11_colorGreen; |
| } |
| else |
| { |
| _133 = _11_colorRed; |
| } |
| return _133; |
| } |
| |
| void frag_main() |
| { |
| float2 _24 = 0.0f.xx; |
| sk_FragColor = main(_24); |
| } |
| |
| SPIRV_Cross_Output main() |
| { |
| frag_main(); |
| SPIRV_Cross_Output stage_output; |
| stage_output.sk_FragColor = sk_FragColor; |
| return stage_output; |
| } |