aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/mtl/GrMtlUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/mtl/GrMtlUtil.h')
-rw-r--r--src/gpu/mtl/GrMtlUtil.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlUtil.h b/src/gpu/mtl/GrMtlUtil.h
index 656b65cd6d..932ebec2b5 100644
--- a/src/gpu/mtl/GrMtlUtil.h
+++ b/src/gpu/mtl/GrMtlUtil.h
@@ -29,4 +29,9 @@ GrPixelConfig GrMTLFormatToPixelConfig(MTLPixelFormat format);
*/
id<MTLTexture> GrGetMTLTexture(const void* mtlTexture, GrWrapOwnership);
+/**
+ * Returns a const void* to whatever the id object is pointing to. Always uses __bridge.
+ */
+const void* GrGetPtrFromId(id idObject);
+
#endif