Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions crates/bevy_render/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,13 @@ impl Default for WgpuSettings {
let gles3_minor_version = Gles3MinorVersion::from_env().unwrap_or_default();

let mut instance_flags = InstanceFlags::default();
#[cfg(not(debug_assertions))]
instance_flags.remove(InstanceFlags::VALIDATION_INDIRECT_CALL);
#[cfg(all(not(debug_assertions), not(feature = "raw_vulkan_init")))]
Comment thread
alice-i-cecile marked this conversation as resolved.
Outdated
// wgpu executes additional necessary logic during validation passes for dx-12 backends,
// so the `VALIDATION_INDIRECT_CALL` flag should stay for dx-12.
if !backends.unwrap().contains(Backends::DX12) {
// Removing this flag improves performance.
instance_flags.remove(InstanceFlags::VALIDATION_INDIRECT_CALL);
}
instance_flags = instance_flags.with_env();

Self {
Expand Down
Loading