HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
PipelineSDF_TextureMap.hpp
1// Copyright 2019 Pokitec
2// All rights reserved.
3
4#pragma once
5
6#include "TTauri/GUI/GUIDevice_forward.hpp"
7#include "TTauri/Foundation/PixelMap.hpp"
8#include "TTauri/Foundation/SDF8.hpp"
9#include <vma/vk_mem_alloc.h>
10#include <vulkan/vulkan.hpp>
11
12namespace tt::PipelineSDF {
13
14struct TextureMap {
15 vk::Image image;
16 VmaAllocation allocation = {};
17 vk::ImageView view;
18 tt::PixelMap<SDF8> pixelMap;
19 vk::ImageLayout layout = vk::ImageLayout::eUndefined;
20
21 void transitionLayout(const GUIDevice &device, vk::Format format, vk::ImageLayout nextLayout);
22};
23
24}
A 2D canvas of pixels.
Definition PixelMap.hpp:83
Definition GUIDevice_vulkan.hpp:22
Definition PipelineSDF_TextureMap.hpp:14