a456175a07
This was (crudely) automated with shell scripts: http://go/paste/5484300603490304 Change-Id: Ic9e1c93112772d303d1158eb26d995f27b439eba Bug: skia:12665 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/505637 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
19 lines
405 B
Plaintext
19 lines
405 B
Plaintext
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'
|
|
*%%*/
|