sandbox
Loading...
Searching...
No Matches
depth_image.hpp
1// SPDX-License-Identifier: MIT
2#ifndef LIBSBX_GRAPHICS_IMAGES_DEPTH_IMAGE_HPP_
3#define LIBSBX_GRAPHICS_IMAGES_DEPTH_IMAGE_HPP_
4
5#include <vector>
6
7#include <vulkan/vulkan.h>
8
9#include <libsbx/graphics/resource_storage.hpp>
10
11#include <libsbx/graphics/images/image.hpp>
12
13namespace sbx::graphics {
14
15class depth_image : public image {
16
17public:
18
19 depth_image(const math::vector2u& extent, VkSampleCountFlagBits samples = VK_SAMPLE_COUNT_1_BIT);
20
21 ~depth_image() override = default;
22
23 static auto format() -> VkFormat;
24
25 auto name() const noexcept -> std::string override {
26 return "Depth Image";
27 }
28
29}; // class depth_image
30
32
33} // sbx::graphics
34
35#endif // LIBSBX_GRAPHICS_IMAGES_DEPTH_IMAGE_HPP_
Definition: depth_image.hpp:15
Definition: image.hpp:21
Definition: resource_storage.hpp:18
A vector in two-dimensional space.
Definition: vector2.hpp:28