19 const char*
collectScope()
const override {
return "render.collect.text"; }
22 static constexpr u32 GLYPHS_PER_BLOCK = 64;
23 struct GlyphBlock { glm::vec3 min, max; };
27 struct TextLayoutCache {
28 std::vector<BatchVertex> vertices;
29 std::vector<u32> indices;
30 std::vector<GlyphBlock> blocks;
40 void rebuildLayout(
const text::BitmapFont& font,
const ecs::BitmapText& bt,
41 f32 texW,
f32 texH, TextLayoutCache& cache);
43 std::unordered_map<Entity, TextLayoutCache> layout_cache_;
44 std::vector<BatchVertex> scratch_;
45 std::vector<u32> index_scratch_;
const char * collectScope() const override
What this plugin's collect is called in a frame profile.
void collect(RenderCollectContext &ctx) override