jjzjj

CVMetalTextureGetTexture

全部标签

objective-c - CVMetalTextureGetTexture 所有权?

我试图弄清楚所有权如何与函数CVMetalTextureGetTexture一起工作:CVMetalTextureReftextureRef;//...textureRefiscreatedidtexture=CVMetalTextureGetTexture(_textureRef);CVBufferRelease(textureRef);//Releasingtheexistingtexture//Istexturestillvalidhere?释放textureRef后texture是否仍然有效?如果没有,我能否以某种方式将所有权从textureRef转移到texture(ARC)