Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void SetIndices(IntPtr indices, IndexFormat format, int count)
 {
     SetData(indices, FormatHelpers.GetIndexFormatElementByteSize(format) * count);
     IndexType = VkFormats.VeldridToVkIndexFormat(format);
 }