Instance Method

newSharedTextureWithDescriptor:

Create a texture that can be shared across process boundaries.

Required.

Declaration

- (id<MTLTexture>)newSharedTextureWithDescriptor:(MTLTextureDescriptor *)descriptor;

Parameters

descriptor

A descriptor object that describes the texture to be created.

Discussion

A shareable texture must be created with a private storage mode (MTLResourceStorageModePrivate). 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 newSharedTextureHandle.

See Also

Creating Textures and Samplers

- newTextureWithDescriptor:

Creates a texture.

Required.

- newTextureWithDescriptor:iosurface:plane:

Creates a texture using an IOSurface to store the texture data.

Required.

- newSharedTextureWithHandle:

Creates a texture referencing an existing shared texture.

Required.

- newSamplerStateWithDescriptor:

Creates a sampler state object.

Required.