-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOverlay.h
More file actions
48 lines (38 loc) · 1.23 KB
/
Copy pathOverlay.h
File metadata and controls
48 lines (38 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* SimShip by Edouard Halbert
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License
http://creativecommons.org/licenses/by-nc-nd/4.0/ */
#pragma once
// 1. PROJECT
#include "vulkan_device.hpp"
#include "vulkan_texture.hpp"
#include "Utility.h"
#include "Structures.h"
// 2. LIB
#include <vulkan/vulkan.h>
#include <stb/stb_image.h>
#include "stb/stb_image_write.h"
#include "tinyexr/tinyexr.h"
#include <glm/glm.hpp>
using namespace glm;
// 3. WIN
#include <vector>
#include <string>
#include <functional>
#include <stdexcept>
#include <algorithm>
#include <iostream>
using namespace std;
class Overlay
{
public:
Overlay(shared_ptr<VulkanDevice> vulkanDevice, VkRenderPass renderPass, VkExtent2D extent);
void CreateOverlayPipeline();
void RenderOverlay(VkCommandBuffer cmd, const VulkanTexture& texture, vec2 topLeft, vec2 size);
private:
shared_ptr<VulkanDevice> mVulkanDevice;
VkRenderPass mRenderPass;
VkExtent2D mExtent;
sPipeline_1 mOverlayPipeline;
void CreateOverlayDescriptors();
void UpdateOverlayDescriptors(const VulkanTexture& texture);
};