c# - Unity iOS Cast IntPtr to MTLTexture -
i'm bit new passing external textures unity ios arc enabled. casting __bridge
cast leaves me compiler error:
incompatible types casting 'intptr_t' (aka 'long') 'id' __bridge cast
from:
extern "c" void setexternaltexture(intptr_t nativetexture) { id<mtltexture> exportedtexture = (__bridge id<mtltexture>)nativetexture; }
i use unity createexternaltexture that, according documentation, should return intptr
refers id<mtltexture>
object.
how should interoperation casted?
Comments
Post a Comment