HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
hikogui
GFX
pipeline_image_texture_map.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 "../pixel_map.hpp"
8
#include "../rapid/sfloat_rgba16.hpp"
9
#include <vma/vk_mem_alloc.h>
10
#include <vulkan/vulkan.hpp>
11
12
namespace
hi::inline v1 {
13
class
gfx_device_vulkan;
14
15
namespace
pipeline_image {
16
17
struct
texture_map
{
18
vk::Image image;
19
VmaAllocation allocation = {};
20
vk::ImageView view;
21
hi::pixel_map<sfloat_rgba16>
pixel_map
;
22
vk::ImageLayout layout = vk::ImageLayout::eUndefined;
23
24
void
transitionLayout(
const
gfx_device_vulkan
&device, vk::Format format, vk::ImageLayout nextLayout);
25
};
26
27
}
// namespace pipeline_image
28
}
// namespace hi::inline v1
v1::gfx_device_vulkan
Definition
gfx_device_vulkan.hpp:21
v1::pixel_map
A 2D canvas of pixels.
Definition
pixel_map.hpp:110
v1::pipeline_image::texture_map
Definition
pipeline_image_texture_map.hpp:17
Generated on Mon Apr 22 2024 12:52:40 for HikoGUI by
1.10.0