905b8244e7
In cases where we know the size of the vector and the index at compile time, we can check if it's accessing in bounds and rely in undefined behavior otherwise. Signed-off-by: Sebastián Aedo <saedo@codeweavers.com>
15 lines
171 B
GLSL
15 lines
171 B
GLSL
#version 320 es
|
|
precision mediump float;
|
|
precision highp int;
|
|
|
|
void main()
|
|
{
|
|
vec3 v = vec3(0.0);
|
|
if (false)
|
|
{
|
|
v.x = 99.0;
|
|
v.x = 88.0;
|
|
}
|
|
}
|
|
|