Düzenle

Aracılığıyla paylaş


MetalKit Namespace

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:

ClassResponsibility

T:MetalKit.TextureLoader

Simplifies loading texture data.

T:MetalKit.Mesh , T:MetalKit.Submesh, T:MetalKit.MeshBuffer

Higher-level mesh manipulation.
MTKView A Metal-aware UIView.