Instance Method

makeSharedTexture(descriptor:)

Create a texture that can be shared across process boundaries.

Required.

Declaration

func makeSharedTexture(descriptor: MTLTextureDescriptor) -> MTLTexture?

Parameters

descriptor

A descriptor object that describes the texture to be created.

Discussion

A shareable texture must be created with a private storage mode (storageModePrivate). This texture can be shared between process boundaries but not between different GPUs, by creating a texture handle and passing it to the other process. See makeSharedTextureHandle().

See Also

Creating Textures and Samplers