-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Upgrade to wgpu 27 and associated crates #21746
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
Changes from 5 commits
ef4c8fc
60ce1dd
36242c2
9f9ecdb
bdd9584
7e2de16
62cd862
94ada57
a10863d
223503a
97f4773
16ffea5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -195,6 +195,9 @@ pub async fn initialize_renderer( | |
| }, | ||
| dx12: wgpu::Dx12BackendOptions { | ||
| shader_compiler: options.dx12_shader_compiler.clone(), | ||
| presentation_system: wgpu::wgt::Dx12SwapchainKind::from_env().unwrap_or_default(), | ||
| latency_waitable_object: wgpu::wgt::Dx12UseFrameLatencyWaitableObject::from_env() | ||
| .unwrap_or_default(), | ||
| }, | ||
| noop: wgpu::NoopBackendOptions { enable: false }, | ||
| }, | ||
|
|
@@ -431,14 +434,30 @@ pub async fn initialize_renderer( | |
| max_subgroup_size: limits | ||
| .max_subgroup_size | ||
| .min(constrained_limits.max_subgroup_size), | ||
| max_acceleration_structures_per_shader_stage: 0, | ||
| max_acceleration_structures_per_shader_stage: limits | ||
| .max_acceleration_structures_per_shader_stage | ||
| .min(constrained_limits.max_acceleration_structures_per_shader_stage), | ||
| max_task_workgroup_total_count: limits | ||
| .max_task_workgroup_total_count | ||
| .min(constrained_limits.max_task_workgroup_total_count), | ||
| max_task_workgroups_per_dimension: limits | ||
| .max_task_workgroups_per_dimension | ||
| .min(constrained_limits.max_task_workgroups_per_dimension), | ||
| max_mesh_output_layers: limits | ||
| .max_mesh_output_layers | ||
| .min(constrained_limits.max_mesh_output_layers), | ||
| max_mesh_multiview_count: limits | ||
| .max_mesh_multiview_count | ||
| .min(constrained_limits.max_mesh_multiview_count), | ||
| }; | ||
| } | ||
|
|
||
| let device_descriptor = wgpu::DeviceDescriptor { | ||
| label: options.device_label.as_ref().map(AsRef::as_ref), | ||
| required_features: features, | ||
| required_limits: limits, | ||
| // SAFETY: We're ok using experimental wgpu features in Bevy | ||
|
||
| experimental_features: unsafe { wgpu::ExperimentalFeatures::enabled() }, | ||
| memory_hints: options.memory_hints.clone(), | ||
| // See https://github.com/gfx-rs/wgpu/issues/5974 | ||
| trace: Trace::Off, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.