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

compiling to metal fails for some shaders #28

Open
romamik opened this issue Dec 9, 2022 · 0 comments
Open

compiling to metal fails for some shaders #28

romamik opened this issue Dec 9, 2022 · 0 comments

Comments

@romamik
Copy link

romamik commented Dec 9, 2022

For example, this shader cannot be compiled to MSL:

#version 450

in vec3 vertexPosition;
in vec4 vertexColor;
uniform mat4 projectionMatrix;
out vec4 fragmentColor;

void main() {
	gl_Position = projectionMatrix * vec4(vertexPosition, 1.0);
	fragmentColor = vertexColor;
}

Looks like matrix by vector multiplication is what triggers the problem.

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

No branches or pull requests

1 participant