protected IVertexBuffer(IDisposableResource parent, IBufferLayoutDesc bufferLayoutDesc, BufferUsages usage, float[] vertices) : base(parent) { this.usage = usage; vertexByteSize = bufferLayoutDesc.ByteSize; vertexFloatArraySize = bufferLayoutDesc.FloatCount; vertexCount = vertices.Length / vertexFloatArraySize; }