From 717bc401068d782a674b8b5c609158b32fa2cf35 Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 6 Jun 2022 14:00:34 +0200 Subject: [PATCH] Add Features::MULTI_DRAW_INDIRECT to Metal (#2737) --- wgpu-hal/src/metal/adapter.rs | 3 ++- wgpu-types/src/lib.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wgpu-hal/src/metal/adapter.rs b/wgpu-hal/src/metal/adapter.rs index f59237100f..04eb4091d2 100644 --- a/wgpu-hal/src/metal/adapter.rs +++ b/wgpu-hal/src/metal/adapter.rs @@ -760,7 +760,8 @@ impl super::PrivateCapabilities { | F::CLEAR_TEXTURE | F::TEXTURE_FORMAT_16BIT_NORM | F::SHADER_FLOAT16 - | F::DEPTH32FLOAT_STENCIL8; + | F::DEPTH32FLOAT_STENCIL8 + | F::MULTI_DRAW_INDIRECT; features.set(F::TEXTURE_COMPRESSION_ASTC_LDR, self.format_astc); features.set(F::TEXTURE_COMPRESSION_ASTC_HDR, self.format_astc_hdr); diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index d9144b8a8f..82c3edcf38 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -422,6 +422,7 @@ bitflags::bitflags! { /// Supported platforms: /// - DX12 /// - Vulkan + /// - Metal (Emulated on top of `draw_indirect` and `draw_indexed_indirect`) /// /// This is a native only feature. const MULTI_DRAW_INDIRECT = 1 << 23;