Contents

makeSharedTexture(handle:)

Creates a texture that references a shared texture.

Declaration

func makeSharedTexture(handle sharedHandle: MTLSharedTextureHandle) -> (any MTLTexture)?

Parameters

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.

See Also

Creating textures