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

GPU: Enable Metal validation in debug mode #11691

Merged
merged 2 commits into from
Dec 23, 2024

Conversation

TheSpydog
Copy link
Collaborator

When creating a GPU device in debug mode, we should enable Metal validation like we do for Vulkan and D3D12. This native validation helps catch errors that are difficult or impossible to detect from SDL's side (like malformed shaders). Unlike other APIs, Metal's validation layers are enabled via an environment variable that must be set before device creation.

@TheSpydog TheSpydog merged commit 62124e2 into libsdl-org:main Dec 23, 2024
40 checks passed
@TheSpydog TheSpydog deleted the metal-validation branch December 23, 2024 23:08
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.

4 participants