objc2_metal_kit

Function MTKModelIOVertexDescriptorFromMetal

Source
pub unsafe extern "C-unwind" fn MTKModelIOVertexDescriptorFromMetal(
    metal_descriptor: &MTLVertexDescriptor,
) -> Retained<MDLVertexDescriptor>
Available on crate features MTKModel and objc2-model-io only.
Expand description

Partially converts a Metal vertex descriptor to a Model I/O vertex descriptor

This method can only set vertex format, offset, bufferIndex, and stride information in the produced Model I/O vertex descriptor. It does not add any semantic information such at attributes names. Names must be set in the returned Model I/O vertex descriptor before it can be applied to a a Model I/O mesh.