mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
Remove redundant bitwise OR TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES
(#7033)
# Objective
`TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES` was already included in `adapter.features()` on non-wasm target, and since it is the default value for `WgpuSettings.features`, the subsequent code will also combine into this feature:
b6066c30b6/crates/bevy_render/src/renderer/mod.rs (L155-L156)
This commit is contained in:
parent
0ddaa7e83a
commit
09c64ffe9f
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ pub async fn initialize_renderer(
|
||||||
let mut features = wgpu::Features::empty();
|
let mut features = wgpu::Features::empty();
|
||||||
let mut limits = options.limits.clone();
|
let mut limits = options.limits.clone();
|
||||||
if matches!(options.priority, WgpuSettingsPriority::Functionality) {
|
if matches!(options.priority, WgpuSettingsPriority::Functionality) {
|
||||||
features = adapter.features() | wgpu::Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES;
|
features = adapter.features();
|
||||||
if adapter_info.device_type == wgpu::DeviceType::DiscreteGpu {
|
if adapter_info.device_type == wgpu::DeviceType::DiscreteGpu {
|
||||||
// `MAPPABLE_PRIMARY_BUFFERS` can have a significant, negative performance impact for
|
// `MAPPABLE_PRIMARY_BUFFERS` can have a significant, negative performance impact for
|
||||||
// discrete GPUs due to having to transfer data across the PCI-E bus and so it
|
// discrete GPUs due to having to transfer data across the PCI-E bus and so it
|
||||||
|
|
Loading…
Reference in a new issue