Skip to content

Fix setDepthClipMode breaking Metal API validation when running under an iOS simulator#66

Open
meuter wants to merge 1 commit into
google:mainfrom
meuter:main
Open

Fix setDepthClipMode breaking Metal API validation when running under an iOS simulator#66
meuter wants to merge 1 commit into
google:mainfrom
meuter:main

Conversation

@meuter
Copy link
Copy Markdown
Contributor

@meuter meuter commented May 5, 2026

Description

When running dawn on an iOS simulator, the initialization fails with the error message "Depth Clip Mode is not supported on this device". The iOS simulator apparently does not support depth clip mode. This patch avoid setting it if not strictly necessary.

Closes issue #457771794. All credits to the original author in https://issues.chromium.org/issues/457771794.

Changes

The change is in src/dawn/native/metal/CommandBufferMTL.mm and simply avoids calling [encoder setDepthClipMode:MTLDepthClipModeClamp] if the pipeline does not call for it.

… an iOS simulator

Closes issue #457771794. All credits to the original author in
https://issues.chromium.org/issues/457771794
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

👋 Thanks for your contribution! Your PR has been imported to Gerrit.
Please visit https://dawn-review.googlesource.com/c/dawn/+/306675 to see it and CC yourself on the change.
After iterating on feedback, please comment on the Gerrit review to notify reviewers.
All reviews are handled within Gerrit, any comments on the GitHub PR may be missed.
You can continue to upload commits to this PR, and they will be automatically imported
into Gerrit.

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.

1 participant