private void PlatformSetAttributeDescriptor( int index, string semanticName, int semanticIndex, VertexFormat format, int bufferIndex, int offset) { var attributeDescriptor = DeviceVertexDescriptor.Attributes[index]; attributeDescriptor.Format = format.ToMTLVertexFormat(); attributeDescriptor.BufferIndex = (nuint)bufferIndex; attributeDescriptor.Offset = (nuint)offset; }