7#include "pipeline_image_image_location.hpp"
8#include "../numeric_array.hpp"
9#include "../aarect.hpp"
10#include "../color/sfloat_rgb32.hpp"
11#include "../color/sfloat_rgba32.hpp"
12#include <vulkan/vulkan.hpp>
14namespace tt::pipeline_image {
34 static vk::VertexInputBindingDescription inputBindingDescription()
37 0,
sizeof(
vertex), vk::VertexInputRate::eVertex
44 { 0, 0, vk::Format::eR32G32B32Sfloat, offsetof(vertex,
position) },
46 { 2, 0, vk::Format::eR32G32B32Sfloat, offsetof(vertex,
atlasPosition) },
Definition sfloat_rgb32.hpp:14
Definition sfloat_rgba32.hpp:14
Definition pipeline_image_vertex.hpp:19
sfloat_rgb32 position
The pixel-coordinates where the origin is located relative to the bottom-left corner of the window.
Definition pipeline_image_vertex.hpp:21
sfloat_rgb32 atlasPosition
The x, y coordinate inside the texture-atlas, z is used as an index in the texture-atlas array.
Definition pipeline_image_vertex.hpp:27
sfloat_rgba32 clippingRectangle
The position in pixels of the clipping rectangle relative to the bottom-left corner of the window,...
Definition pipeline_image_vertex.hpp:24