Skip to main content

Crate rcus_render

Crate rcus_render 

Source

Structsยง

AtlasSet
One atlas layer per distinct (pixel size, monospace) pair, uploaded into a single texture array so a frame still needs only one text bind and one draw.
BoxStyle
The shape of one box, in the units the shader expects.
BoxVertex
One corner of a box, with everything the shader needs to draw it.
Frame
One assembled frame: solid quads, glyph quads, and their clip rectangles.
FrameBuilder
Turns a layout tree into the two vertex batches the GPU consumes. The builder owns the glyph atlases so a host never touches glyph internals.
GlyphAtlas
Dynamic glyph coverage atlas for one face at one pixel size.
GlyphQuad
One glyph quad in device pixels, ready to be expanded into triangles.
Renderer
Draws frames with a solid pass followed by one textured text pass.
Scissor
A run of geometry that must be clipped, in device pixels.
SolidPipeline
TextMetrics
Font metrics without rasterization, which is what the layout engine needs to size and center text. Advances come straight from the font tables, so this is cheap enough to call per node per frame.
TextPipeline
TextVertex
Viewport
Viewport size, uploaded once per frame and read by the text shader.