Lines Matching refs:five
65 // This `five` is constant and should always fold.
66 const float five = 5.0;
67 ok = ok && (float2x2(five)[0] == float2(five, 0.0));
68 ok = ok && (float2x2(five)[1] == float2(0.0, five));
70 ok = ok && (float2x2(five)[0][0] == five);
71 ok = ok && (float2x2(five)[0][1] == 0.0);
72 ok = ok && (float2x2(five)[1][0] == 0.0);
73 ok = ok && (float2x2(five)[1][1] == five);
75 ok = ok && (float3x3(1, 2, 3, 4, five, 6, 7, 8, 9)[0] == float3(1, 2, 3));
76 ok = ok && (float3x3(1, 2, 3, 4, five, 6, 7, 8, 9)[1] == float3(4, five, 6));
77 ok = ok && (float3x3(1, 2, 3, 4, five, 6, 7, 8, 9)[2] == float3(7, 8, 9));
80 // This `five` cannot be folded, but the first and third columns should still be foldable.
81 float five = 5.0;
82 ok = ok && (float3x3(1, 2, 3, 4, five, 6, 7, 8, 9)[0] == float3(1, 2, 3));
83 ok = ok && (float3x3(1, 2, 3, 4, five, 6, 7, 8, 9)[1] == float3(4, five, 6));
84 ok = ok && (float3x3(1, 2, 3, 4, five, 6, 7, 8, 9)[2] == float3(7, 8, 9));