HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields
tt::PipelineSDF::Vertex Struct Reference

#include <TTauri/GUI/PipelineSDF_Vertex.hpp>

Public Member Functions

 Vertex (vec position, aarect clippingRectangle, vec textureCoord, vec color) noexcept
 

Static Public Member Functions

static vk::VertexInputBindingDescription inputBindingDescription ()
 
static std::vector< vk::VertexInputAttributeDescription > inputAttributeDescriptions ()
 

Data Fields

R32G32B32SFloat position
 The pixel-coordinates where the origin is located relative to the bottom-left corner of the window.
 
R32G32B32A32SFloat clippingRectangle
 Clipping rectangle. (x,y)=bottom-left, (z,w)=top-right.
 
R32G32B32SFloat textureCoord
 The x, y (relative to bottom-left) coordinate inside the texture-atlas, z is used as an index in the texture-atlas array.
 
R16G16B16A16SFloat color
 The color of the glyph.
 

Detailed Description

A vertex defining a rectangle on a window. The vertex shader will convert window pixel-coordinates to normalized projection-coordinates.

Field Documentation

◆ clippingRectangle

R32G32B32A32SFloat tt::PipelineSDF::Vertex::clippingRectangle

Clipping rectangle. (x,y)=bottom-left, (z,w)=top-right.

◆ color

R16G16B16A16SFloat tt::PipelineSDF::Vertex::color

The color of the glyph.

◆ position

R32G32B32SFloat tt::PipelineSDF::Vertex::position

The pixel-coordinates where the origin is located relative to the bottom-left corner of the window.

◆ textureCoord

R32G32B32SFloat tt::PipelineSDF::Vertex::textureCoord

The x, y (relative to bottom-left) coordinate inside the texture-atlas, z is used as an index in the texture-atlas array.


The documentation for this struct was generated from the following file: