Skip to main content

Crate objc2_metal_kit

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
MTKViewmacOS and MTKView and objc2-app-kit
View for rendering metal content

Statics§

MTKModelErrorDomain⚠MTKModel
Apple’s documentation
MTKModelErrorKey⚠MTKModel
Apple’s documentation
MTKTextureLoaderCubeLayoutVertical⚠MTKTextureLoader
Identifier specifying that the texture loader will create a cube texture from six faces arranged vertically within a single 2D image
MTKTextureLoaderErrorDomain⚠MTKTextureLoader
Apple’s documentation
MTKTextureLoaderErrorKey⚠MTKTextureLoader
Apple’s documentation
MTKTextureLoaderOptionAllocateMipmaps⚠MTKTextureLoader
Identifier to be used in an options NSDictionary with a boolean NSNumber specifying whether to allocate memory for mipmaps when creating the texture
MTKTextureLoaderOptionCubeLayout⚠MTKTextureLoader
Identifier to be used in an options NSDictionary with an MTKTextureLoaderCubeLayout NSString specifying whether to create a cubemap from a 2D image
MTKTextureLoaderOptionGenerateMipmaps⚠MTKTextureLoader
Identifier to be used in an options NSDictionary with a boolean NSNumber specifying whether to generate mipmaps when creating the texture
MTKTextureLoaderOptionLoadAsArray⚠MTKTextureLoader
Identifier specifying that the texture should be loaded as an array texture when possible.
MTKTextureLoaderOptionOrigin⚠MTKTextureLoader
Identifier to be used in an options NSDictionary with an MTKTextureLoaderOrigin NSString specifying whether to flip textures vertically
MTKTextureLoaderOptionSRGB⚠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
MTKTextureLoaderOptionTextureCPUCacheMode⚠MTKTextureLoader
Identifier to be used with an NSNumber specifying the MTLCPUCacheMode
MTKTextureLoaderOptionTextureStorageMode⚠MTKTextureLoader
Identifier to be used with an NSNumber specifying the MTLStorageMode
MTKTextureLoaderOptionTextureUsage⚠MTKTextureLoader
Identifier to be used with an NSNumber specifying the MTLTextureUsage flags
MTKTextureLoaderOriginBottomLeft⚠MTKTextureLoader
Identifier specifying that the texture loader should flip textures whose origin is in the top-left corner
MTKTextureLoaderOriginFlippedVertically⚠MTKTextureLoader
Identifier specifying that the texture loader should always flip textures
MTKTextureLoaderOriginTopLeft⚠MTKTextureLoader
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
MTKMetalVertexDescriptorFromModelIOWithError⚠MTKModel 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
MTKModelIOVertexDescriptorFromMetalWithError⚠MTKModel 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
MTKTextureLoaderArrayCallbackblock2 and MTKTextureLoader
Apple’s documentation
MTKTextureLoaderCallbackblock2 and MTKTextureLoader
Apple’s documentation
MTKTextureLoaderCubeLayoutMTKTextureLoader
Apple’s documentation
MTKTextureLoaderErrorMTKTextureLoader
MTKTextureLoaderErrors
MTKTextureLoaderOptionMTKTextureLoader
MTKTextureLoaderOptions
MTKTextureLoaderOriginMTKTextureLoader
Apple’s documentation