Crate objc2_metal_kit

Source
Expand description

§Bindings to the MetalKit framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

MTKMeshMTKModel
Container for vertex data of a mesh and submeshes to render it.
MTKMeshBufferMTKModel
Mesh buffer created by MTKMeshBufferAllocator when Model I/O needs to memory for vertex or index data backing.
MTKMeshBufferAllocatorMTKModel
Allocator passed to MDLAsset init method to load vertex and index data directly into Metal buffers.
MTKSubmeshMTKModel
A segment of a mesh and properties to render the segement.
MTKTextureLoaderMTKTextureLoader
Load Metal textures from files with the device specified at initialization

Statics§

MTKModelErrorDomainMTKModel
Apple’s documentation
MTKModelErrorKeyMTKModel
Apple’s documentation
MTKTextureLoaderCubeLayoutVerticalMTKTextureLoader
Identifier specifying that the texture loader will create a cube texture from six faces arranged vertically within a single 2D image
MTKTextureLoaderErrorDomainMTKTextureLoader
Apple’s documentation
MTKTextureLoaderErrorKeyMTKTextureLoader
Apple’s documentation
MTKTextureLoaderOptionAllocateMipmapsMTKTextureLoader
Identifier to be used in an options NSDictionary with a boolean NSNumber specifying whether to allocate memory for mipmaps when creating the texture
MTKTextureLoaderOptionCubeLayoutMTKTextureLoader
Identifier to be used in an options NSDictionary with an MTKTextureLoaderCubeLayout NSString specifying whether to create a cubemap from a 2D image
MTKTextureLoaderOptionGenerateMipmapsMTKTextureLoader
Identifier to be used in an options NSDictionary with a boolean NSNumber specifying whether to generate mipmaps when creating the texture
MTKTextureLoaderOptionLoadAsArrayMTKTextureLoader
Identifier specifying that the texture should be loaded as an array texture when possible.
MTKTextureLoaderOptionOriginMTKTextureLoader
Identifier to be used in an options NSDictionary with an MTKTextureLoaderOrigin NSString specifying whether to flip textures vertically
MTKTextureLoaderOptionSRGBMTKTextureLoader
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
MTKTextureLoaderOptionTextureCPUCacheModeMTKTextureLoader
Identifier to be used with an NSNumber specifying the MTLCPUCacheMode
MTKTextureLoaderOptionTextureStorageModeMTKTextureLoader
Identifier to be used with an NSNumber specifying the MTLStorageMode
MTKTextureLoaderOptionTextureUsageMTKTextureLoader
Identifier to be used with an NSNumber specifying the MTLTextureUsage flags
MTKTextureLoaderOriginBottomLeftMTKTextureLoader
Identifier specifying that the texture loader should flip textures whose origin is in the top-left corner
MTKTextureLoaderOriginFlippedVerticallyMTKTextureLoader
Identifier specifying that the texture loader should always flip textures
MTKTextureLoaderOriginTopLeftMTKTextureLoader
Identifier specifying that the texture loader should flip textures whose origin is in the bottom-left corner

Traits§

MTKViewDelegateMTKView
Allows an object to render into the view and respond to resize events

Functions§

MTKMetalVertexDescriptorFromModelIOMTKModel and objc2-model-io
Partially converts a Model I/O vertex descriptor to a Metal vertex descriptor
MTKMetalVertexDescriptorFromModelIOWithErrorMTKModel and objc2-model-io
Partially converts a Model I/O vertex descriptor to a Metal vertex descriptor
MTKMetalVertexFormatFromModelIOMTKModel and objc2-model-io
Converts a Model I/O vertex format to a Metal vertex format
MTKModelIOVertexDescriptorFromMetalMTKModel and objc2-model-io
Partially converts a Metal vertex descriptor to a Model I/O vertex descriptor
MTKModelIOVertexDescriptorFromMetalWithErrorMTKModel and objc2-model-io
Partially converts a Metal vertex descriptor to a Model I/O vertex descriptor
MTKModelIOVertexFormatFromMetalMTKModel and objc2-model-io
Converts a Metal vertex format to a Model I/O vertex format

Type Aliases§

MTKModelErrorMTKModel
MTKModelErrors
MTKTextureLoaderArrayCallbackMTKTextureLoader and block2
Apple’s documentation
MTKTextureLoaderCallbackMTKTextureLoader and block2
Apple’s documentation
MTKTextureLoaderCubeLayoutMTKTextureLoader
Apple’s documentation
MTKTextureLoaderErrorMTKTextureLoader
MTKTextureLoaderErrors
MTKTextureLoaderOptionMTKTextureLoader
MTKTextureLoaderOptions
MTKTextureLoaderOriginMTKTextureLoader
Apple’s documentation