public InterleavedSection(ArrayBufferBase arrayBuffer, InterleavedSectionBase otherSection) { _ParentArray = arrayBuffer; ItemType = otherSection.ItemType; Normalized = otherSection.Normalized; Offset = otherSection.Offset; Stride = otherSection.Stride; }
/// <summary> /// /// </summary> /// <param name="arrayBuffer"></param> /// <param name="sectionIndex"></param> public ArrayAttachment(ArrayBufferBase arrayBuffer, uint sectionIndex) { if (arrayBuffer == null) { throw new ArgumentNullException("arrayBuffer"); } ArrayBuffer = arrayBuffer; ArrayBuffer.IncRef(); ArraySectionIndex = sectionIndex; }
public void AttachArray(uint varyingLocation, ArrayBufferBase arrayBuffer, uint sectionIndex) { _AttachedArrays[varyingLocation] = new ArrayAttachment(arrayBuffer, sectionIndex); }
public void AttachArray(uint varyingLocation, ArrayBufferBase arrayBuffer) { AttachArray(varyingLocation, arrayBuffer, 0); }