Expand description
§Bindings to the MetalKit framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- MTKMesh
MTKModel - Container for vertex data of a mesh and submeshes to render it.
- MTKMesh
Buffer MTKModel - Mesh buffer created by MTKMeshBufferAllocator when Model I/O needs to memory for vertex or index data backing.
- MTKMesh
Buffer Allocator MTKModel - Allocator passed to MDLAsset init method to load vertex and index data directly into Metal buffers.
- MTKSubmesh
MTKModel - A segment of a mesh and properties to render the segement.
- MTKTexture
Loader MTKTextureLoader - Load Metal textures from files with the device specified at initialization
- MTKView
MTKViewandobjc2-app-kitand macOS - View for rendering metal content
Statics§
- MTKModel
Error ⚠Domain MTKModel - Apple’s documentation
- MTKModel
Error ⚠Key MTKModel - Apple’s documentation
- MTKTexture
Loader ⚠Cube Layout Vertical MTKTextureLoader - Identifier specifying that the texture loader will create a cube texture from six faces arranged vertically within a single 2D image
- MTKTexture
Loader ⚠Error Domain MTKTextureLoader - Apple’s documentation
- MTKTexture
Loader ⚠Error Key MTKTextureLoader - Apple’s documentation
- MTKTexture
Loader ⚠Option Allocate Mipmaps MTKTextureLoader - Identifier to be used in an options NSDictionary with a boolean NSNumber specifying whether to allocate memory for mipmaps when creating the texture
- MTKTexture
Loader ⚠Option Cube Layout MTKTextureLoader - Identifier to be used in an options NSDictionary with an MTKTextureLoaderCubeLayout NSString specifying whether to create a cubemap from a 2D image
- MTKTexture
Loader ⚠Option Generate Mipmaps MTKTextureLoader - Identifier to be used in an options NSDictionary with a boolean NSNumber specifying whether to generate mipmaps when creating the texture
- MTKTexture
Loader ⚠Option Load AsArray MTKTextureLoader - Identifier specifying that the texture should be loaded as an array texture when possible.
- MTKTexture
Loader ⚠Option Origin MTKTextureLoader - Identifier to be used in an options NSDictionary with an MTKTextureLoaderOrigin NSString specifying whether to flip textures vertically
- MTKTexture
Loader ⚠OptionSRGB MTKTextureLoader - Identifier to be used in an options NSDictionary with a boolean NSNumber specifying whether to create the texture with an sRGB (gamma corrected) pixel format
- MTKTexture
Loader ⚠Option TextureCPU Cache Mode MTKTextureLoader - Identifier to be used with an NSNumber specifying the MTLCPUCacheMode
- MTKTexture
Loader ⚠Option Texture Storage Mode MTKTextureLoader - Identifier to be used with an NSNumber specifying the MTLStorageMode
- MTKTexture
Loader ⚠Option Texture Usage MTKTextureLoader - Identifier to be used with an NSNumber specifying the MTLTextureUsage flags
- MTKTexture
Loader ⚠Origin Bottom Left MTKTextureLoader - Identifier specifying that the texture loader should flip textures whose origin is in the top-left corner
- MTKTexture
Loader ⚠Origin Flipped Vertically MTKTextureLoader - Identifier specifying that the texture loader should always flip textures
- MTKTexture
Loader ⚠Origin TopLeft MTKTextureLoader - Identifier specifying that the texture loader should flip textures whose origin is in the bottom-left corner
Traits§
- MTKView
Delegate MTKView - Allows an object to render into the view and respond to resize events
Functions§
- MTKMetal
Vertex Descriptor From ModelIO MTKModelandobjc2-model-io - Partially converts a Model I/O vertex descriptor to a Metal vertex descriptor
- MTKMetal
Vertex ⚠Descriptor From ModelIO With Error MTKModelandobjc2-model-io - Partially converts a Model I/O vertex descriptor to a Metal vertex descriptor
- MTKMetal
Vertex Format From ModelIO MTKModelandobjc2-model-io - Converts a Model I/O vertex format to a Metal vertex format
- MTKModelIO
Vertex Descriptor From Metal MTKModelandobjc2-model-io - Partially converts a Metal vertex descriptor to a Model I/O vertex descriptor
- MTKModelIO
Vertex ⚠Descriptor From Metal With Error MTKModelandobjc2-model-io - Partially converts a Metal vertex descriptor to a Model I/O vertex descriptor
- MTKModelIO
Vertex Format From Metal MTKModelandobjc2-model-io - Converts a Metal vertex format to a Model I/O vertex format
Type Aliases§
- MTKModel
Error MTKModel - MTKModelErrors
- MTKTexture
Loader Array Callback MTKTextureLoaderandblock2 - Apple’s documentation
- MTKTexture
Loader Callback MTKTextureLoaderandblock2 - Apple’s documentation
- MTKTexture
Loader Cube Layout MTKTextureLoader - Apple’s documentation
- MTKTexture
Loader Error MTKTextureLoader - MTKTextureLoaderErrors
- MTKTexture
Loader Option MTKTextureLoader - MTKTextureLoaderOptions
- MTKTexture
Loader Origin MTKTextureLoader - Apple’s documentation