From 013624c9bc654a314e04ea18e58f168b8be0c3ca Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 14 Feb 2026 23:54:07 +0000 Subject: Refactor test-instancing so the data is generated in a common fixture Includes exposure of InstanceVertices::reserve because why not. --- gfx/gl/instanceVertices.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gfx/gl/instanceVertices.h') diff --git a/gfx/gl/instanceVertices.h b/gfx/gl/instanceVertices.h index de20871..2417a91 100644 --- a/gfx/gl/instanceVertices.h +++ b/gfx/gl/instanceVertices.h @@ -48,13 +48,15 @@ public: } // NOLINTNEXTLINE)hicpp-explicit-conversions - [[nodiscard]] operator T &() + [[nodiscard]] + operator T &() { return instances->lookup(index); } // NOLINTNEXTLINE)hicpp-explicit-conversions - [[nodiscard]] operator const T &() const + [[nodiscard]] + operator const T &() const { return instances->lookup(index); } @@ -119,6 +121,7 @@ public: } using base::bufferName; + using base::reserve; [[nodiscard]] auto size() const -- cgit v1.3