1cb93a386Sopenharmony_ciuniform half4 colorGreen, colorRed; 2cb93a386Sopenharmony_ci 3cb93a386Sopenharmony_ciconst float3x3 values = float3x3(1); 4cb93a386Sopenharmony_ci 5cb93a386Sopenharmony_ciinline float3 indexMatrix(int index) { 6cb93a386Sopenharmony_ci return values[index]; 7cb93a386Sopenharmony_ci} 8cb93a386Sopenharmony_ci 9cb93a386Sopenharmony_cihalf4 main(float2 coords) { 10cb93a386Sopenharmony_ci float3 ok = indexMatrix(0) + indexMatrix(1) + indexMatrix(2); 11cb93a386Sopenharmony_ci float3 undefined = indexMatrix(-1) + indexMatrix(3); 12cb93a386Sopenharmony_ci return colorGreen; 13cb93a386Sopenharmony_ci} 14