makeSharedTexture(handle:)
Creates a texture that references a shared texture.
Declaration
func makeSharedTexture(handle sharedHandle: MTLSharedTextureHandle) -> (any MTLTexture)?Parameters
- sharedHandle:
An Mtlsharedtexturehandle instance, typically from another process using the same GPU device.
Return Value
A new MTLTexture instance if the method completed successfully; otherwise nil.
Discussion
Call this method from the same MTLDevice instance that created the shared texture instance.