pub unsafe extern "C-unwind" fn MTKMetalVertexDescriptorFromModelIOWithError(
model_io_descriptor: &MDLVertexDescriptor,
error: *mut *mut NSError,
) -> Option<Retained<MTLVertexDescriptor>>
Available on crate features
MTKModel
and objc2-model-io
only.Expand description
Partially converts a Model I/O vertex descriptor to a Metal vertex descriptor
This method can only set vertex format, offset, bufferIndex, and stride information in the produced Metal vertex descriptor. It simply copies attributes 1 for 1. Thus attributes in the given Model I/O vertex descriptor must be arranged in the correct order for the resulting descriptor to properly map mesh data to vertex shader inputs. Layout stepFunction and stepRates for the resulting MTLVertexDescriptor must also be set by application. If error is nonnull, and the conversion cannot be made, it will be set.