Example #1
0
            public InterleavedSection(ArrayBufferBase arrayBuffer, InterleavedSectionBase otherSection)
            {
                _ParentArray = arrayBuffer;

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