From: Mikko Rasa Date: Thu, 15 Sep 2016 14:47:27 +0000 (+0300) Subject: Align batches at the index size X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6a7510a74193ad442bfe82d8377606c3cb66e6b2;p=libs%2Fgl.git Align batches at the index size --- diff --git a/source/batch.h b/source/batch.h index 0ce4ecf1..2f83207e 100644 --- a/source/batch.h +++ b/source/batch.h @@ -57,6 +57,7 @@ private: void append_index(unsigned); virtual unsigned get_data_size() const { return data.size(); } virtual const void *get_data_pointer() const { return &data[0]; } + virtual unsigned get_alignment() const { return get_index_size(); } unsigned get_index_size() const; public: unsigned size() const { return data.size()/get_index_size(); }