18struct alignas(16) vertex {
58 float line_width) noexcept :
65 line_width(line_width)
69 static vk::VertexInputBindingDescription inputBindingDescription()
71 return {0,
sizeof(
vertex), vk::VertexInputRate::eVertex};
77 {0, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, position)},
78 {1, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, clipping_rectangle)},
79 {2, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, corner_coordinate)},
80 {3, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, corner_radii)},
81 {4, 0, vk::Format::eR16G16B16A16Sfloat, offsetof(vertex, fill_color)},
82 {5, 0, vk::Format::eR16G16B16A16Sfloat, offsetof(vertex, line_color)},
83 {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:34
sfloat_rgba32 corner_radii
Shape of each corner, negative values are cut corners, positive values are rounded corners.
Definition pipeline_box_vertex.hpp:38
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