Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vec literals as statements cause compile errors #38

Open
paulthomson opened this issue Dec 2, 2016 · 2 comments
Open

vec literals as statements cause compile errors #38

paulthomson opened this issue Dec 2, 2016 · 2 comments

Comments

@paulthomson
Copy link
Contributor

paulthomson commented Dec 2, 2016

[Shaders, screenshots, error log, reproduction steps, etc.] [ZIP]

The following fragment shader fails to compile:

#version 100

#ifdef GL_ES
precision mediump float;
#endif

void main()
{
    vec2(1.0, 1.0);
    vec3(1.0, 1.0, 1.0);
    vec4(1.0, 1.0, 1.0, 1.0);
}

Compile error:

Failed to compile fragment shader.
ERROR: 0:2: Expression of type 'vec2' - precision can not be inferred and no default precision available
ERROR: 0:3: Expression of type 'vec3' - precision can not be inferred and no default precision available
ERROR: 0:4: Expression of type 'vec4' - precision can not be inferred and no default precision available

The shader is valid according to glslangValidator.

@paulthomson
Copy link
Contributor Author

@paulthomson
Copy link
Contributor Author

Also reported to Apple. Bug report ID: 29479501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants