mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
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:
committed by
Baldur Karlsson
parent
21325315ac
commit
fcc721c2e4
@@ -5196,6 +5196,7 @@ _MTL_PRIVATE_DEF_SEL(writeMask,
|
||||
|
||||
namespace MTL
|
||||
{
|
||||
class Drawable;
|
||||
using DrawablePresentedHandler = void (^)(class Drawable*);
|
||||
|
||||
using DrawablePresentedHandlerFunction = std::function<void(class Drawable*)>;
|
||||
|
||||
Reference in New Issue
Block a user