summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2026-02-14 23:54:07 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2026-02-14 23:54:07 +0000
commit013624c9bc654a314e04ea18e58f168b8be0c3ca (patch)
tree04945697def1c1dce122f59b4de639747846e5e0 /gfx
parentAdd support for partitioning by 2 unary predicates (diff)
downloadilt-013624c9bc654a314e04ea18e58f168b8be0c3ca.tar.bz2
ilt-013624c9bc654a314e04ea18e58f168b8be0c3ca.tar.xz
ilt-013624c9bc654a314e04ea18e58f168b8be0c3ca.zip
Refactor test-instancing so the data is generated in a common fixture
Includes exposure of InstanceVertices::reserve because why not.
Diffstat (limited to 'gfx')
-rw-r--r--gfx/gl/instanceVertices.h7
1 files changed, 5 insertions, 2 deletions
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