7#include "pipeline_image_image_location.hpp"
8#include "../geometry/axis_aligned_rectangle.hpp"
9#include "../rapid/sfloat_rgb32.hpp"
10#include "../rapid/sfloat_rgba32.hpp"
11#include <vulkan/vulkan.hpp>
13namespace tt::pipeline_image {
33 static vk::VertexInputBindingDescription inputBindingDescription()
36 0,
sizeof(
vertex), vk::VertexInputRate::eVertex
43 { 0, 0, vk::Format::eR32G32B32Sfloat, offsetof(vertex,
position) },
45 { 2, 0, vk::Format::eR32G32B32Sfloat, offsetof(vertex,
atlasPosition) },
Class which represents an axis-aligned rectangle.
Definition axis_aligned_rectangle.hpp:20
Definition pipeline_image_vertex.hpp:18
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:20
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:26
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:23
Definition sfloat_rgb32.hpp:12
Definition sfloat_rgba32.hpp:15