Skip to content

Commit

Permalink
Update wgpu-hal/src/vulkan/adapter.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Teodor Tanasoaia <[email protected]>
  • Loading branch information
nical and teoxoy committed Oct 12, 2023
1 parent 19d26c4 commit 981dc24
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions wgpu-hal/src/vulkan/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1784,10 +1784,7 @@ fn supports_bgra8unorm_storage(
let features2 = properties2.format_properties.optimal_tiling_features;
let features3 = properties3.optimal_tiling_features;

let base_requirements = features2.contains(vk::FormatFeatureFlags::STORAGE_IMAGE);
let vk_1_3_reequirements =
features3.contains(vk::FormatFeatureFlags2::STORAGE_WRITE_WITHOUT_FORMAT_KHR);

base_requirements && vk_1_3_reequirements
features2.contains(vk::FormatFeatureFlags::STORAGE_IMAGE)
&& features3.contains(vk::FormatFeatureFlags2::STORAGE_WRITE_WITHOUT_FORMAT)
}
}

0 comments on commit 981dc24

Please sign in to comment.