class DebugFont
Defined at line 17 of file ../../src/ui/lib/escher/debug/debug_font.h
This is a monospaced bitmap font renderer that blits to the output image for
maximal performance.
Public Members
static const uint32_t kGlyphWidth
static const uint32_t kGlyphHeight
static const uint32_t kGlyphPadding
static const uint32_t kNumGlyphs
Public Methods
std::unique_ptr<DebugFont> New (BatchGpuUploader * uploader, ImageFactory * factory)
Defined at line 17 of file ../../src/ui/lib/escher/debug/debug_font.cc
std::unique_ptr<uint8_t[]> GetFontPixels ()
Return RGBA pixels containing a monospace bitmap ASCII font. Each glyph is
7x7 pixels (including 1 pixel of padding around each edge of the glyph).
The glyphs are packed in a single column with total dimensions 7x1792.
Defined at line 69 of file ../../src/ui/lib/escher/debug/debug_font.cc
void Blit (CommandBuffer * cb, const std::string & text, const ImagePtr & output_image, vk::Offset2D target_offset, int32_t scale)
Blit the specified text into |output_image|. |target_offset| is the
top-left corner of the display region. |scale| is an integer multiplier
that scales the width and height of each displayed glyph. The caller is
responsible for setting memory barriers; |output_image| must have layout
vk::ImageLayout::eTransferDstOptimal before Blit() is called.
Defined at line 27 of file ../../src/ui/lib/escher/debug/debug_font.cc