blob: 489bc6ec3d668b45885790e5596d0a0db8a6851e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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'
*%%*/
|