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 multiview rendering #3779

Merged
merged 1 commit into from
May 19, 2023
Merged

Fix multiview rendering #3779

merged 1 commit into from
May 19, 2023

Conversation

MalekiRe
Copy link
Contributor

@MalekiRe MalekiRe commented May 17, 2023

Checklist

  • [ x] Run cargo clippy.
  • Run RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown if applicable.
  • [ x] Add change to CHANGELOG.md. See simple instructions inside file.

Connections
fixes #3778

Description
WGPU Multiview works again by disabling some validation of TextureViewDimension and ResolvedArrayLayerCount

Testing
Running WGPU with a multiview enabled and trying it with multiple views.

@MalekiRe
Copy link
Contributor Author

@cwfitzgerald This is a PR to do the fix for the thing in the issue

Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

lgtm!

teoxoy
teoxoy previously requested changes May 17, 2023
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Besides the comment it looks good!

wgpu-core/src/device/mod.rs Outdated Show resolved Hide resolved
@MalekiRe
Copy link
Contributor Author

@teoxoy Made the change

@MalekiRe MalekiRe requested a review from teoxoy May 17, 2023 22:32
@MalekiRe
Copy link
Contributor Author

Do not merge this yet! I messed up the logic with the 2DTextureView to be inverted with the fix

…yer count and TextureViewDimension when enabled
@MalekiRe
Copy link
Contributor Author

Fixed, feel free to do checks, resolve the issue and merge

@cwfitzgerald cwfitzgerald merged commit dafc189 into gfx-rs:trunk May 19, 2023
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.

Add a feature gate to enable XR/Multiview rendering
4 participants