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: vulkan only uses robust_*_access2 if the driver supports it #3962

Merged

Conversation

schell
Copy link
Contributor

@schell schell commented Jul 22, 2023

Checklist

  • Run cargo clippy.
  • Run cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Connections
This finishes up the work started in #3958 and allows the vulkan backend to be selected on macOS.

Description
Added robust_[buffer|image]_access2 parameters to PrivateCapabilitiesto specify if those caps are supported by the driver, then bubbled those up toPhysicalDeviceFeatures`.

Testing
On macOS, run WGPU_BACKEND=vk VK_LOADER_DEBUG=error cargo run --bin skybox --features=vulkan-portability and it should succeed.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Great! Amazing stuff, going to get this working in CI

@cwfitzgerald cwfitzgerald merged commit 8417eff into gfx-rs:trunk Jul 23, 2023
@cwfitzgerald cwfitzgerald mentioned this pull request Jul 23, 2023
3 tasks
@schell schell deleted the fix/vulkan-separate-robust-access2 branch July 23, 2023 21:18
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