vpenades 1 سال پیش
والد
کامیت
2ad03b913e
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      src/SharpGLTF.Core/Memory/MemoryAccessor.cs

+ 9 - 0
src/SharpGLTF.Core/Memory/MemoryAccessor.cs

@@ -205,6 +205,15 @@ namespace SharpGLTF.Memory
             return Math.Max(ByteStride, _GetItemByteLength());
             return Math.Max(ByteStride, _GetItemByteLength());
         }
         }
 
 
+        /// <summary>
+        /// Assuming that <paramref name="attributes"/> are sequential and adyacent,
+        /// it modifies the <see cref="ByteOffset"/> of each item of <paramref name="attributes"/> to ensure
+        /// the offsets are sequential.
+        /// </summary>
+        /// <param name="attributes">A list of attributes to fix.</param>
+        /// <param name="byteOffset">The initial byteoffset.</param>
+        /// <param name="itemsCount">the default items count.</param>
+        /// <returns>The byte stride.</returns>
         public static int SetInterleavedInfo(MemoryAccessInfo[] attributes, int byteOffset, int itemsCount)
         public static int SetInterleavedInfo(MemoryAccessInfo[] attributes, int byteOffset, int itemsCount)
         {
         {
             Guard.NotNull(attributes, nameof(attributes));
             Guard.NotNull(attributes, nameof(attributes));