diff --git a/CHANGELOG.md b/CHANGELOG.md index 562f1bccc..11047021d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -245,6 +245,7 @@ By @beholdnec in [#8505](https://github.com/gfx-rs/wgpu/pull/8505). #### Metal +- Detect BC texture support on newer iOS, tvOS, and visionOS devices. By @bmisiak in [#9656](https://github.com/gfx-rs/wgpu/pull/9656). - Fix crash on fence creation when running in a MacOS Seatbelt sandbox. By @wumpf in [#9415](https://github.com/gfx-rs/wgpu/pull/9415) - Improved command buffer completion handling. By @39ali in [#9328](https://github.com/gfx-rs/wgpu/pull/9328). - Wait using a condition variable, instead of polling. diff --git a/wgpu-hal/src/metal/adapter.rs b/wgpu-hal/src/metal/adapter.rs index 47cef8265..4d359f0b0 100644 --- a/wgpu-hal/src/metal/adapter.rs +++ b/wgpu-hal/src/metal/adapter.rs @@ -745,7 +745,10 @@ impl super::CapabilitiesQuery { 1 }, format_b5: os_type != super::OsType::Macos, - format_bc: os_type == super::OsType::Macos, + format_bc: os_type == super::OsType::Macos + || (available!(macos = 11.0, ios = 16.4, tvos = 16.4, visionos = 1.0) + && device_class_responds_to(device, sel!(supportsBCTextureCompression)) + && device.supportsBCTextureCompression()), format_eac_etc: os_type != super::OsType::Macos // M1 in macOS supports EAC/ETC2 || (family_check && device.supportsFamily(MTLGPUFamily::Apple7)),