7#include "../geometry/module.hpp"
8#include "../image/module.hpp"
9#include <vulkan/vulkan.hpp>
11namespace hi::inline
v1::pipeline_image {
16struct alignas(16) vertex {
18 sfloat_rgba32 position;
21 sfloat_rgba32 clipping_rectangle;
27 position(position), clipping_rectangle(clipping_rectangle), atlas_position(atlas_position)
31 static vk::VertexInputBindingDescription inputBindingDescription()
33 return {0,
sizeof(
vertex), vk::VertexInputRate::eVertex};
39 {0, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, position)},
40 {1, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, clipping_rectangle)},
41 {2, 0, vk::Format::eR32G32B32A32Sfloat, offsetof(vertex, atlas_position)},
DOXYGEN BUG.
Definition algorithm.hpp:13
Definition pipeline_alpha_vertex.hpp:18
sfloat_rgba32 atlas_position
The x, y coordinate inside the texture-atlas, z is used as an index in the texture-atlas array.
Definition pipeline_image_vertex.hpp:24
4 x float32 pixel format.
Definition sfloat_rgba32.hpp:22