]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/batch.h
Initial implementation of Vulkan backend
[libs/gl.git] / source / core / batch.h
index dd07adb58b632941d0264350b783b386efd97fdc..1fc225210f739a457278b7e5f6ba3ba87e62b4da 100644 (file)
@@ -69,8 +69,8 @@ private:
        virtual std::size_t get_data_size() const { return data.size(); }
        virtual const void *get_data_pointer() const { return &data[0]; }
        virtual std::size_t get_alignment() const { return get_index_size(); }
-       std::size_t get_index_size() const;
 public:
+       std::size_t get_index_size() const { return get_type_size(index_type); }
        std::size_t size() const { return data.size()/get_index_size(); }
 
        unsigned get_index(std::size_t) const;