mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 04:50:35 +00:00
Add declarations for ObjC helper methods
This commit is contained in:
committed by
Baldur Karlsson
parent
ca7495a3c8
commit
b92dccc5e9
@@ -33,8 +33,12 @@
|
||||
FUNC(Function); \
|
||||
FUNC(Library);
|
||||
|
||||
#define DECLARE_OBJC_HELPERS(CPPTYPE) \
|
||||
class WrappedMTL##CPPTYPE; \
|
||||
#define DECLARE_OBJC_HELPERS(CPPTYPE) \
|
||||
class WrappedMTL##CPPTYPE; \
|
||||
extern WrappedMTL##CPPTYPE *GetWrapped(MTL::CPPTYPE *objCWrapped); \
|
||||
extern MTL::CPPTYPE *GetReal(MTL::CPPTYPE *objCWrapped); \
|
||||
extern bool IsObjCWrapped(MTL::CPPTYPE *objCWrapped); \
|
||||
extern ResourceId GetId(MTL::CPPTYPE *objCWrapped); \
|
||||
extern MTL::CPPTYPE *AllocateObjCBridge(WrappedMTL##CPPTYPE *wrapped);
|
||||
|
||||
METALCPP_WRAPPED_PROTOCOLS(DECLARE_OBJC_HELPERS)
|
||||
|
||||
Reference in New Issue
Block a user