NarcEngine 0.1.1
C++ Vulkan game engine
 
Loading...
Searching...
No Matches
DepthResources.h
1//
2// Created by theoh on 3/2/2025.
3//
4
5#pragma once
6
7#include <vulkan/vulkan_core.h>
8
9#include "core/DeviceComponent.h"
10
11namespace narc_engine {
12 class DeviceHandler;
13
14 class DepthResources final : public DeviceComponent
15 {
16 public:
17 DepthResources() = default;
18 ~DepthResources();
19
20 VkImageView getImageView() const { return m_depthImageView; }
21
22 void create(uint32_t width, uint32_t height);
23 void release();
24
25 private:
26 VkImage m_depthImage;
27 VkDeviceMemory m_depthImageMemory;
28 VkImageView m_depthImageView;
29 };
30}
Definition DeviceHandler.h:11