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

wgpu: add vec3 padding in quad.vert; fixes #511 #523

Closed
wants to merge 1 commit into from

Conversation

aentity
Copy link
Contributor

@aentity aentity commented Sep 14, 2020

This adds a vec4 in place of single float in quad uniforms to avoid metal validation errors.

@aentity
Copy link
Contributor Author

aentity commented Sep 18, 2020

@hecrj forgot to make PR, can review please?

@aentity
Copy link
Contributor Author

aentity commented Sep 23, 2020

@hecrj ping

@hecrj
Copy link
Member

hecrj commented Sep 30, 2020

Hey, thanks!

What is exactly the cause of this issue? Could it be a bug in wgpu?

@hecrj hecrj added the question Further information is requested label Sep 30, 2020
@aentity
Copy link
Contributor Author

aentity commented Sep 30, 2020

Wgpu should catch yes, but issue is (i think) the uniform is not correctly aligned / padded according to metal layout requirements. It could perhaps be shaderc bug, which doesn't add the necessary padding at end of the uniform, I'm not sure?

@hecrj
Copy link
Member

hecrj commented Oct 29, 2020

I see. I believe that, before merging, we need to identify the root cause of the issue and whether it is up to us to fix it.

The proposed fix here affects all of our wgpu backends, not only Metal.

@hecrj
Copy link
Member

hecrj commented Feb 12, 2021

Is this issue still present after #725? If it is, does wgpu provide any more hints about what is going on?

I am closing this, but feel free to reopen it if you find out the actual cause.

@hecrj hecrj closed this Feb 12, 2021
@hecrj hecrj mentioned this pull request May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants