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

Fix incorrect MTLRenderStages constants #227

Merged
merged 1 commit into from
Feb 6, 2022

Conversation

aclysma
Copy link
Contributor

@aclysma aclysma commented Feb 6, 2022

This potentially fixes synchronization as these constants are passed to APIs like waitForFence(_ fence: MTLFence, before stages: MTLRenderStages)

https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1648378-waitforfence

Would appreciate if someone could properly double-check this. I can see from the metal frame capture that this fixed incorrect values for me, and these docs show the constants being used in other bindings. https://docs.microsoft.com/en-us/dotnet/api/metal.mtlrenderstages?view=xamarin-ios-sdk-12 I was not able to find the correct values published by apple. (Maybe their C++ bindings would have them)

@aclysma
Copy link
Contributor Author

aclysma commented Feb 6, 2022

@grovesNL
Copy link
Collaborator

grovesNL commented Feb 6, 2022

You can see the values on the individual constant like https://developer.apple.com/documentation/metal/mtlrenderstages/mtlrenderstagevertex?language=objc, so this change seems correct

Copy link
Collaborator

@grovesNL grovesNL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@grovesNL grovesNL merged commit 9c91373 into gfx-rs:master Feb 6, 2022
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

Successfully merging this pull request may close these issues.

2 participants