61 float line_width) noexcept :
63 clipping_rectangle(clipping_rectangle),
64 corner_coordinate(corner_coordinate),
66 fill_color(fill_color),
67 line_color(line_color),
68 line_width(line_width)
72 static vk::VertexInputBindingDescription inputBindingDescription()
74 return {0,
sizeof(
vertex), vk::VertexInputRate::eVertex};
80 {0, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, position)},
81 {1, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, clipping_rectangle)},
82 {2, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, corner_coordinate)},
83 {3, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, corner_radii)},
84 {4, 0, vk::Format::eR16G16B16A16Sfloat, offsetof(vertex, fill_color)},
85 {5, 0, vk::Format::eR16G16B16A16Sfloat, offsetof(vertex, line_color)},
86 {6, 0, vk::Format::eR32Sfloat, offsetof(vertex, line_width)},
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:37
sfloat_rgba32 corner_radii
Shape of each corner, negative values are cut corners, positive values are rounded corners.
Definition pipeline_box_vertex.hpp:41
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:28