Merge pull request #2439 from KhronosGroup/fix-2261
[KhronosGroup/SPIRV-Cross.git] / reference / shaders-msl / tese / in-block-with-nested-struct.raw-tess-in.tese
blob23c2cc3ecc4accbce5c7628ea1e70b95f4de0c46
1 #include <metal_stdlib>
2 #include <simd/simd.h>
4 using namespace metal;
6 struct t35
8     float2 m0;
9     float4 m1;
12 struct t36
14     float2 m0;
15     t35 m1;
18 struct main0_out
20     float v80 [[user(locn0)]];
21     float4 gl_Position [[position]];
24 struct main0_in
26     float2 v40_m0;
27     t35 v40_m1;
30 [[ patch(triangle, 0) ]] vertex main0_out main0(float3 gl_TessCoord [[position_in_patch]], uint gl_PrimitiveID [[patch_id]], const device main0_in* spvIn [[buffer(22)]])
32     main0_out out = {};
33     const device main0_in* gl_in = &spvIn[gl_PrimitiveID * 0];
34     out.gl_Position = float4((gl_TessCoord.xy * 2.0) - float2(1.0), 0.0, 1.0);
35     float v34 = ((float(abs(gl_in[0].v40_m1.m1.x - (-4.0)) < 0.001000000047497451305389404296875) * float(abs(gl_in[0].v40_m1.m1.y - (-9.0)) < 0.001000000047497451305389404296875)) * float(abs(gl_in[0].v40_m1.m1.z - 3.0) < 0.001000000047497451305389404296875)) * float(abs(gl_in[0].v40_m1.m1.w - 7.0) < 0.001000000047497451305389404296875);
36     out.v80 = v34;
37     return out;