HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
GFX
pipeline_image_push_constants.hpp
1
// Copyright Take Vos 2019.
2
// Distributed under the Boost Software License, Version 1.0.
3
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5
#pragma once
6
7
#include "../rapid/sfloat_rg32.hpp"
8
#include <vulkan/vulkan.hpp>
9
10
namespace
tt::pipeline_image {
11
12
struct
push_constants
{
13
sfloat_rg32
windowExtent =
extent2
{ 0.0, 0.0 };
14
sfloat_rg32
viewportScale =
scale2
{ 0.0, 0.0 };
15
sfloat_rg32
atlasExtent =
extent2
{ 0.0, 0.0 };
16
sfloat_rg32
atlasScale =
scale2
{ 0.0, 0.0 };
17
18
static
std::vector<vk::PushConstantRange>
pushConstantRanges()
19
{
20
return
{
21
{ vk::ShaderStageFlagBits::eVertex | vk::ShaderStageFlagBits::eFragment, 0,
sizeof
(
push_constants
) }
22
};
23
}
24
};
25
26
}
tt::geo::extent< 2 >
tt::geo::scale
Definition
scale.hpp:15
tt::pipeline_image::push_constants
Definition
pipeline_image_push_constants.hpp:12
tt::sfloat_rg32
Definition
sfloat_rg32.hpp:16
std::vector
Generated on Mon Apr 22 2024 12:53:30 for HikoGUI by
1.10.0