Skip to content

force unclipped depth emu on webgpu #19785

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

robtfm
Copy link
Contributor

@robtfm robtfm commented Jun 23, 2025

Objective

fixes #19626

Solution

it seems like on webgpu the render device may report DEPTH_CLIP_CONTROL without actually supporting it, so we force emulated mode for webgpu.

Co-authored-by: Joona Aalto <jondolf.dev@gmail.com>
@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen O-WebGPU Specific to the WebGPU render API D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jun 23, 2025
Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

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

I'd prefer to open a bug upstream and link it here (and in the code) before merging this. Fixes seems very sensible though.

@atlv24
Copy link
Contributor

atlv24 commented Jun 23, 2025

Superseded by gfx-rs/wgpu#7841

And I'll try to get us a backport patch release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior D-Straightforward Simple bug fixes and API improvements, docs, test and examples O-WebGPU Specific to the WebGPU render API S-Needs-Review Needs reviewer attention (from anyone!) to move forward
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Directional lights ignore walls on WebGPU when the camera is too parallel to them
4 participants