Add Features::MULTI_DRAW_INDIRECT to Metal (#2737)

This commit is contained in:
Ashley 2022-06-06 14:00:34 +02:00 committed by GitHub
parent a3b241857d
commit 717bc40106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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;