8#include "../geometry/axis_aligned_rectangle.hpp"
9#include "../rapid/sfloat_rgba16.hpp"
10#include "../rapid/sfloat_rgba32.hpp"
11#include "../rapid/sfloat_rgb32.hpp"
12#include <vulkan/vulkan.hpp>
15namespace tt::pipeline_box {
64 line_width(line_width)
68 static vk::VertexInputBindingDescription inputBindingDescription()
71 0,
sizeof(
vertex), vk::VertexInputRate::eVertex
78 { 0, 0, vk::Format::eR32G32B32Sfloat, offsetof(vertex,
position) },
81 { 3, 0, vk::Format::eR16G16B16A16Sfloat, offsetof(vertex,
fill_color) },
82 { 4, 0, vk::Format::eR16G16B16A16Sfloat, offsetof(vertex,
line_color) },
83 { 5, 0, vk::Format::eR16G16B16A16Sfloat, offsetof(vertex,
corner_shapes) },
84 { 6, 0, vk::Format::eR32Sfloat, offsetof(vertex, line_width) },
This is a RGBA floating point color.
Definition color.hpp:36
Class which represents an axis-aligned rectangle.
Definition axis_aligned_rectangle.hpp:20
Definition corner_shapes.hpp:9
Definition pipeline_box_vertex.hpp:20
sfloat_rgba16 fill_color
background color of the box.
Definition pipeline_box_vertex.hpp:39
sfloat_rgba32 corner_coordinate
Double 2D coordinates inside the quad, used to determine the distance from the sides and corner insid...
Definition pipeline_box_vertex.hpp:36
sfloat_rgba32 clipping_rectangle
The position in pixels of the clipping rectangle relative to the bottom-left corner of the window,...
Definition pipeline_box_vertex.hpp:25
sfloat_rgba16 line_color
border color of the box.
Definition pipeline_box_vertex.hpp:42
sfloat_rgb32 position
The pixel-coordinates where the origin is located relative to the bottom-left corner of the window.
Definition pipeline_box_vertex.hpp:22
sfloat_rgba16 corner_shapes
Shape of each corner, negative values are cut corners, positive values are rounded corners.
Definition pipeline_box_vertex.hpp:45
Definition sfloat_rgb32.hpp:12
Definition sfloat_rgba16.hpp:19
Definition sfloat_rgba32.hpp:15