Set COPY_SRC/COPY_DST only based on Vulkan's TRANSFER_SRC/TRANSFER_DST (#3366)

* remove `BLIT_SRC`/`BLIT_DST`

* add changelog entry
This commit is contained in:
Teodor Tanasoaia
2023-01-10 15:48:16 +01:00
committed by GitHub
parent e7ca1716f5
commit 98ddb402eb
2 changed files with 6 additions and 6 deletions

View File

@@ -134,6 +134,10 @@ Additionally `Surface::get_default_config` now returns an Option and returns Non
- Browsers that support `OVR_multiview2` now report the `MULTIVIEW` feature by @expenses in [#3121](https://github.com/gfx-rs/wgpu/pull/3121).
#### Vulkan
- Set `COPY_SRC`/`COPY_DST` only based on Vulkan's `TRANSFER_SRC`/`TRANSFER_DST` by @teoxoy in [#3366](https://github.com/gfx-rs/wgpu/pull/3366).
### Added/New Features
#### General

View File

@@ -1476,15 +1476,11 @@ impl crate::Adapter<super::Api> for super::Adapter {
);
flags.set(
Tfc::COPY_SRC,
features.intersects(
vk::FormatFeatureFlags::TRANSFER_SRC | vk::FormatFeatureFlags::BLIT_SRC,
),
features.intersects(vk::FormatFeatureFlags::TRANSFER_SRC),
);
flags.set(
Tfc::COPY_DST,
features.intersects(
vk::FormatFeatureFlags::TRANSFER_DST | vk::FormatFeatureFlags::BLIT_DST,
),
features.intersects(vk::FormatFeatureFlags::TRANSFER_DST),
);
// Vulkan is very permissive about MSAA
flags.set(Tfc::MULTISAMPLE_RESOLVE, !format.describe().is_compressed());