Esempio n. 1
0
            public InterleavedSection(ArrayBufferBase arrayBuffer, InterleavedSectionBase otherSection)
            {
                _ParentArray = arrayBuffer;

                ItemType   = otherSection.ItemType;
                Normalized = otherSection.Normalized;
                Offset     = otherSection.Offset;
                Stride     = otherSection.Stride;
            }
Esempio n. 2
0
            /// <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;
            }
Esempio n. 3
0
 public void AttachArray(uint varyingLocation, ArrayBufferBase arrayBuffer, uint sectionIndex)
 {
     _AttachedArrays[varyingLocation] = new ArrayAttachment(arrayBuffer, sectionIndex);
 }
Esempio n. 4
0
 public void AttachArray(uint varyingLocation, ArrayBufferBase arrayBuffer)
 {
     AttachArray(varyingLocation, arrayBuffer, 0);
 }