HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields
hi::v1::gfx_pipeline_SDF::vertex Struct Reference

#include <hikogui/GFX/gfx_pipeline_SDF_vulkan_intf.hpp>

Public Member Functions

 vertex (point3 position, aarectangle clippingRectangle, point3 textureCoord, hi::color color) noexcept
 

Static Public Member Functions

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

Data Fields

sfloat_rgb32 position
 The pixel-coordinates where the origin is located relative to the bottom-left corner of the window.
 
sfloat_rgba32 clippingRectangle
 Clipping rectangle. (x,y)=bottom-left, (z,w)=top-right.
 
sfloat_rgb32 textureCoord
 The x, y (relative to bottom-left) coordinate inside the texture-atlas, z is used as an index in the texture-atlas array.
 
sfloat_rgba16 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

sfloat_rgba32 hi::v1::gfx_pipeline_SDF::vertex::clippingRectangle

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

◆ color

sfloat_rgba16 hi::v1::gfx_pipeline_SDF::vertex::color

The color of the glyph.

◆ position

sfloat_rgb32 hi::v1::gfx_pipeline_SDF::vertex::position

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

◆ textureCoord

sfloat_rgb32 hi::v1::gfx_pipeline_SDF::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: