public void SetIndices(IntPtr indices, IndexFormat format, int count, int elementOffset) { int elementSizeInBytes = FormatHelpers.GetIndexFormatElementByteSize(format); SetData(indices, elementSizeInBytes * count, elementOffset * elementSizeInBytes); IndexType = VkFormats.VeldridToVkIndexFormat(format); }
public void SetIndices(IntPtr indices, IndexFormat format, int count) { SetData(indices, FormatHelpers.GetIndexFormatElementByteSize(format) * count); IndexType = VkFormats.VeldridToVkIndexFormat(format); }