Fix compile warnings/errors in metal-cpp.h

Forward declare MTL::Drawable to avoid conflicts. "Drawable" is a common type name
This commit is contained in:
Jake Turner authored and Baldur Karlsson committed 2022-02-17 14:06:28 +00:00
1 parent b633ec78f8
commit c4edcdbf66
1 file changed
+1
@@ -4511,6 +4511,7 @@ _MTL_PRIVATE_DEF_SEL(writeMask,
namespace MTL
{
class Drawable;
using DrawablePresentedHandler = void (^)(class Drawable*);
using DrawablePresentedHandlerFunction = std::function<void(class Drawable*)>;