mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
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:
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user