public glTFBufferView Append <T>(ArraySegment <T> segment, glBufferTarget target) where T : struct { var view = Storage.Extend(segment, target); byteLength = Storage.GetBytes().Count; return(view); }
public glTFBufferView ExtendBufferAndGetView <T>(ArraySegment <T> segment, glBufferTarget target) where T : struct { var view = _buffer.Extend(segment, target); GLTF.buffers[0].byteLength = _buffer.Bytes.Count; return(view); }
public glTFBufferView Append <T>(ArraySegment <T> segment, glBufferTarget target) where T : struct { var view = m_buffer.Extend(segment, target); byteLength = m_buffer.Bytes.Count; return(view); }
public static glTFBufferView Extend <T>(this IBytesBuffer buffer, T[] array, glBufferTarget target) where T : struct { return(buffer.Extend(new ArraySegment <T>(array), target)); }