From fcc721c2e424b5009071788e8278559e84c41c33 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Wed, 15 Dec 2021 11:28:22 +0000 Subject: [PATCH] Fix compile warnings/errors in metal-cpp.h Forward declare MTL::Drawable to avoid conflicts. "Drawable" is a common type name --- renderdoc/driver/metal/official/metal-cpp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/renderdoc/driver/metal/official/metal-cpp.h b/renderdoc/driver/metal/official/metal-cpp.h index d102779fd..6d8e3705b 100644 --- a/renderdoc/driver/metal/official/metal-cpp.h +++ b/renderdoc/driver/metal/official/metal-cpp.h @@ -5196,6 +5196,7 @@ _MTL_PRIVATE_DEF_SEL(writeMask, namespace MTL { +class Drawable; using DrawablePresentedHandler = void (^)(class Drawable*); using DrawablePresentedHandlerFunction = std::function;