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