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 authored Oct 11, 2023
1 parent dd65c65 commit e92e6c0
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 e92e6c0

Please sign in to comment.