HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
pipeline_box_push_constants.hpp
1// Copyright Take Vos 2020.
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 "../color/sfloat_rg32.hpp"
8#include <vulkan/vulkan.hpp>
9
10namespace tt::pipeline_box {
11
13 sfloat_rg32 windowExtent = f32x4{ 0.0, 0.0 };
14 sfloat_rg32 viewportScale = f32x4{ 0.0, 0.0 };
15
16 static std::vector<vk::PushConstantRange> pushConstantRanges()
17 {
18 return {
19 { vk::ShaderStageFlagBits::eVertex | vk::ShaderStageFlagBits::eFragment, 0, sizeof(push_constants) }
20 };
21 }
22};
23
24}
Definition sfloat_rg32.hpp:14
Definition pipeline_box_push_constants.hpp:12