Toast Engine
Loading...
Searching...
No Matches
vulkan_sampler.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "vulkan_common.hpp"
7
8#include <string_view>
9
10namespace renderer {
11class VulkanCore;
12
13class VulkanSampler {
14public:
15 VulkanSampler() = default;
16 VulkanSampler(const VulkanCore& core, const vk::SamplerCreateInfo& info, std::string_view debug_name = {});
17
18 [[nodiscard]]
19 auto handle() const -> VkSampler {
20 return *m_sampler;
21 }
22
23private:
24 vk::raii::Sampler m_sampler = nullptr;
25};
26
27}
Definition vulkan_core.hpp:48