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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -