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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -