dfranx / SPIRV-VM

Virtual machine for executing SPIR-V
MIT License
293 stars 27 forks source link

Always crash on negative array index #6

Open danilw opened 3 years ago

danilw commented 3 years ago

Shader code

void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
    vec4 test=vec4(0.);
    fragColor = vec4(test[-1+min(iFrame,0)]);
}