blob: 489bc6ec3d668b45885790e5596d0a0db8a6851e [file] [log] [blame]
uniform half4 colorGreen, colorRed;
const float3x3 values = float3x3(1);
inline float3 indexMatrix(int index) {
return values[index];
}
half4 main(float2 coords) {
float3 ok = indexMatrix(0) + indexMatrix(1) + indexMatrix(2);
float3 undefined = indexMatrix(-1) + indexMatrix(3);
return colorGreen;
}
/*%%*
index -1 out of range for 'float3x3'
index 3 out of range for 'float3x3'
*%%*/