1*c8dee2aaSAndroid Build Coastguard Worker/*#pragma settings NoInline*/ 2*c8dee2aaSAndroid Build Coastguard Worker 3*c8dee2aaSAndroid Build Coastguard Workervoid out_half (out half v) { v = 1; } 4*c8dee2aaSAndroid Build Coastguard Workervoid out_half2(out half2 v) { v = half2(2); } 5*c8dee2aaSAndroid Build Coastguard Workervoid out_half3(out half3 v) { v = half3(3); } 6*c8dee2aaSAndroid Build Coastguard Workervoid out_half4(out half4 v) { v = half4(4); } 7*c8dee2aaSAndroid Build Coastguard Worker 8*c8dee2aaSAndroid Build Coastguard Workervoid out_half2x2(out half2x2 v) { v = half2x2(2); } 9*c8dee2aaSAndroid Build Coastguard Workervoid out_half3x3(out half3x3 v) { v = half3x3(3); } 10*c8dee2aaSAndroid Build Coastguard Workervoid out_half4x4(out half4x4 v) { v = half4x4(4); } 11*c8dee2aaSAndroid Build Coastguard Worker 12*c8dee2aaSAndroid Build Coastguard Workervoid out_int (out int v) { v = 1; } 13*c8dee2aaSAndroid Build Coastguard Workervoid out_int2(out int2 v) { v = int2(2); } 14*c8dee2aaSAndroid Build Coastguard Workervoid out_int3(out int3 v) { v = int3(3); } 15*c8dee2aaSAndroid Build Coastguard Workervoid out_int4(out int4 v) { v = int4(4); } 16*c8dee2aaSAndroid Build Coastguard Worker 17*c8dee2aaSAndroid Build Coastguard Workervoid out_float (out float v) { v = 1; } 18*c8dee2aaSAndroid Build Coastguard Workervoid out_float2(out float2 v) { v = float2(2); } 19*c8dee2aaSAndroid Build Coastguard Workervoid out_float3(out float3 v) { v = float3(3); } 20*c8dee2aaSAndroid Build Coastguard Workervoid out_float4(out float4 v) { v = float4(4); } 21*c8dee2aaSAndroid Build Coastguard Worker 22*c8dee2aaSAndroid Build Coastguard Workervoid out_float2x2(out float2x2 v) { v = float2x2(2); } 23*c8dee2aaSAndroid Build Coastguard Workervoid out_float3x3(out float3x3 v) { v = float3x3(3); } 24*c8dee2aaSAndroid Build Coastguard Workervoid out_float4x4(out float4x4 v) { v = float4x4(4); } 25*c8dee2aaSAndroid Build Coastguard Worker 26*c8dee2aaSAndroid Build Coastguard Workervoid out_bool (out bool v) { v = true; } 27*c8dee2aaSAndroid Build Coastguard Workervoid out_bool2(out bool2 v) { v = bool2(false); } 28*c8dee2aaSAndroid Build Coastguard Workervoid out_bool3(out bool3 v) { v = bool3(true); } 29*c8dee2aaSAndroid Build Coastguard Workervoid out_bool4(out bool4 v) { v = bool4(false); } 30*c8dee2aaSAndroid Build Coastguard Worker 31*c8dee2aaSAndroid Build Coastguard Workervoid out_pair(out half v1, out half v2) { v1 = 1; v2 = 2; } 32*c8dee2aaSAndroid Build Coastguard Worker 33*c8dee2aaSAndroid Build Coastguard Workervoid main() { 34*c8dee2aaSAndroid Build Coastguard Worker half h; out_half (h); 35*c8dee2aaSAndroid Build Coastguard Worker half2 h2; out_half2(h2); 36*c8dee2aaSAndroid Build Coastguard Worker half3 h3; out_half3(h3); 37*c8dee2aaSAndroid Build Coastguard Worker half4 h4; out_half4(h4); 38*c8dee2aaSAndroid Build Coastguard Worker out_half(h3[1]); 39*c8dee2aaSAndroid Build Coastguard Worker out_half2(h3.xz); 40*c8dee2aaSAndroid Build Coastguard Worker out_half4(h4.zwxy); 41*c8dee2aaSAndroid Build Coastguard Worker sk_FragColor = half4(h, h2.x, h3.x, h4.x); 42*c8dee2aaSAndroid Build Coastguard Worker 43*c8dee2aaSAndroid Build Coastguard Worker half h1; 44*c8dee2aaSAndroid Build Coastguard Worker out_pair(h, h1); 45*c8dee2aaSAndroid Build Coastguard Worker out_pair(h, h); 46*c8dee2aaSAndroid Build Coastguard Worker out_pair(h2.x, h2.y); 47*c8dee2aaSAndroid Build Coastguard Worker out_pair(h2.x, h2.x); 48*c8dee2aaSAndroid Build Coastguard Worker out_pair(h2.x, h3.x); 49*c8dee2aaSAndroid Build Coastguard Worker 50*c8dee2aaSAndroid Build Coastguard Worker half2x2 h2x2; out_half2x2(h2x2); 51*c8dee2aaSAndroid Build Coastguard Worker half3x3 h3x3; out_half3x3(h3x3); 52*c8dee2aaSAndroid Build Coastguard Worker half4x4 h4x4; out_half4x4(h4x4); 53*c8dee2aaSAndroid Build Coastguard Worker out_half3(h3x3[1]); 54*c8dee2aaSAndroid Build Coastguard Worker out_half4(h4x4[3].zwxy); 55*c8dee2aaSAndroid Build Coastguard Worker out_half2(h2x2[0]); 56*c8dee2aaSAndroid Build Coastguard Worker sk_FragColor = half4(h2x2[0][0], h3x3[0][0], h4x4[0][0], 1); 57*c8dee2aaSAndroid Build Coastguard Worker 58*c8dee2aaSAndroid Build Coastguard Worker int i; out_int (i); 59*c8dee2aaSAndroid Build Coastguard Worker int2 i2; out_int2(i2); 60*c8dee2aaSAndroid Build Coastguard Worker int3 i3; out_int3(i3); 61*c8dee2aaSAndroid Build Coastguard Worker int4 i4; out_int4(i4); 62*c8dee2aaSAndroid Build Coastguard Worker out_int3(i4.xyz); 63*c8dee2aaSAndroid Build Coastguard Worker sk_FragColor = half4(i, i2.x, i3.x, i4.x); 64*c8dee2aaSAndroid Build Coastguard Worker 65*c8dee2aaSAndroid Build Coastguard Worker float f; out_float (f); 66*c8dee2aaSAndroid Build Coastguard Worker float2 f2; out_float2(f2); 67*c8dee2aaSAndroid Build Coastguard Worker float3 f3; out_float3(f3); 68*c8dee2aaSAndroid Build Coastguard Worker float4 f4; out_float4(f4); 69*c8dee2aaSAndroid Build Coastguard Worker out_float2(f3.xy); 70*c8dee2aaSAndroid Build Coastguard Worker out_float(f2[0]); 71*c8dee2aaSAndroid Build Coastguard Worker sk_FragColor = half4(f, f2.x, f3.x, f4.x); 72*c8dee2aaSAndroid Build Coastguard Worker 73*c8dee2aaSAndroid Build Coastguard Worker float2x2 f2x2; out_float2x2(f2x2); 74*c8dee2aaSAndroid Build Coastguard Worker float3x3 f3x3; out_float3x3(f3x3); 75*c8dee2aaSAndroid Build Coastguard Worker float4x4 f4x4; out_float4x4(f4x4); 76*c8dee2aaSAndroid Build Coastguard Worker out_float(f2x2[0][0]); 77*c8dee2aaSAndroid Build Coastguard Worker out_float4(f4x4[1]); 78*c8dee2aaSAndroid Build Coastguard Worker sk_FragColor = half4(f2x2[0][0], f3x3[0][0], f4x4[0][0], 1); 79*c8dee2aaSAndroid Build Coastguard Worker 80*c8dee2aaSAndroid Build Coastguard Worker bool b; out_bool (b); 81*c8dee2aaSAndroid Build Coastguard Worker bool2 b2; out_bool2(b2); 82*c8dee2aaSAndroid Build Coastguard Worker bool3 b3; out_bool3(b3); 83*c8dee2aaSAndroid Build Coastguard Worker bool4 b4; out_bool4(b4); 84*c8dee2aaSAndroid Build Coastguard Worker out_bool2(b4.xw); 85*c8dee2aaSAndroid Build Coastguard Worker out_bool(b3[2]); 86*c8dee2aaSAndroid Build Coastguard Worker sk_FragColor = half4(b, b2.x, b3.x, b4.x); 87*c8dee2aaSAndroid Build Coastguard Worker} 88