What steps will reproduce the problem?
1. Try to compile the following shader:
#version 300 es
precision mediump float;
void main() {
float[] a = float[](0.0, 1.0);
float[] b = float[](0.0, 2.0);
float[] c = true ? b : a;
}
What is the expected output? What do you see instead?
Expected: compilation fails
Actual: compilation succeeds
ESSL3.00 section 5.7 says that the ternary operator is not one of the operators
that can operate on whole arrays/structs. ANGLE should check this.
Original issue reported on code.google.com by oetu...@nvidia.com on 15 Apr 2015 at 1:09
Original issue reported on code.google.com by
oetu...@nvidia.com
on 15 Apr 2015 at 1:09