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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -