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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -