MetalKit Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides higher-level classes for writing applications that use Metal for rendering.
Classes
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 | |
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 | |
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
IMTKViewDelegate |
Interface representing the required methods (if any) of the protocol MTKViewDelegate. |
Enums
MTKTextureLoaderCubeLayout | |
MTKTextureLoaderOrigin |
Delegates
MTKTextureLoaderArrayCallback | |
MTKTextureLoaderCallback |
Completion handler for textures loaded with MTKTextureLoader. |
Remarks
The MetalKit namespace provides higher-level classes to handle:
Class | Responsibility |
---|---|
Simplifies loading texture data. | |
Higher-level mesh manipulation. | |
MTKView | A Metal-aware UIView. |