Create texture objects using private storage containing texture states.
func makeTexture(descriptor: MTLTextureDescriptor) -> MTLTexture? Creates a texture object with privately owned storage that contains texture state. Required.
IOSurface creates texture objects using private storage containing texture states.
func makeTexture(descriptor: MTLTextureDescriptor, iosurface: IOSurfaceRef, plane: Int) -> MTLTexture? Creates a texture object, from an IOSurface, with privately owned storage that contains texture state. Required.
Create new textures that can be shared across process boundaries.
func makeSharedTexture(descriptor: MTLTextureDescriptor) -> MTLTexture? Create a new texture that can be shared across process boundaries. Required.
Create texture objects that reference existing shared textures.
func makeSharedTexture(handle: MTLSharedTextureHandle) -> MTLTexture? Creates a texture object referencing an existing shared texture. Required.
func makeSamplerState(descriptor: MTLSamplerDescriptor) -> MTLSamplerState? Creates a sampler state object that contains the sampler state. Required.
Create a sampler state object that contains the sampler state.
func supportsTextureSampleCount(Int) -> Bool Determines whether a device supports a given texture sample count. Required.
Determine whether the device supports a given texture sample count.
func minimumLinearTextureAlignment(for: MTLPixelFormat) -> Int Returns the minimum alignment required for creating a linear texture with a given pixel format. Required.
Returns the minimum alignment required to create a linear texture with a given pixel format.
func minimumTextureBufferAlignment(for: MTLPixelFormat) -> Int Returns the minimum alignment required when creating a texture buffer from a buffer. Required.
Returns the minimum alignment required to create a texture buffer from the buffer.
var readWriteTextureSupport: MTLReadWriteTextureTier The device's read-write texture support tier. Required.