Share via


MetalKit Namespace

Provides higher-level classes for writing applications that use Metal for rendering.

Classes

Name Description
MTKMesh

Holds vertex data for rendering with Metal.

MTKMeshBuffer

A Metal buffer for holding vertex and index data for ModelIO meshes and submeshes.

MTKMeshBufferAllocator

An IMDLMeshBufferAllocator that allocates a MTKMeshBuffer suitable for use with MDLAsset objects.

MTKModel

Static class that contains MetalKit constants related to MetalKit Model errors.

MTKSubmesh

A segment of mesh data that can be rendered in a single draw call. Submesh vertex data is held in the parent MTKMesh.

MTKTextureLoader

Creates IMTLTexture objects from common image formats.

MTKTextureLoaderCubeLayoutExtensions

Extension methods for the MTKTextureLoaderCubeLayout enumeration.

MTKTextureLoaderError

Key and ___domain strings for working with texture loading errors.

MTKTextureLoaderOptions

Contains a dictionary of texture loading options and exposes them as discoverably named properties.

MTKTextureLoaderOriginExtensions

Extension methods for the MTKTextureLoaderOrigin enumeration.

MTKView

A UIView that is Metal-aware.

MTKView.MTKViewAppearance

Appearance class for objects of type MTKView.

MTKViewDelegate

Delegate object for MTKView objects. Provides methods called when the view is drawn and laid out.

Interfaces

Name Description
IMTKViewDelegate

Delegate object for MTKView objects. Provides methods called when the view is drawn and laid out.

Enums

Name Description
MTKTextureLoaderCubeLayout
MTKTextureLoaderOrigin

Delegates

Name Description
MTKTextureLoaderArrayCallback
MTKTextureLoaderCallback

Completion handler for textures loaded with MTKTextureLoader.

Remarks

The MetalKit namespace provides higher-level classes to handle:

ClassResponsibility
MTKTextureLoader Simplifies loading texture data.
MTKMesh, MTKSubmesh, MTKMeshBuffer Higher-level mesh manipulation.
MTKView A Metal-aware UIView.