Hymn to Beauty
C++ 3D Engine
VulkanSampler.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "../Interface/Sampler.hpp"
4
5#include <vulkan/vulkan.h>
6
7namespace Video {
8
9class VulkanRenderer;
10
12class VulkanSampler : public Sampler {
13 public:
15
20 VulkanSampler(VkDevice device, Filter filter, Clamping clamping);
21
23 ~VulkanSampler() final;
24
26
29 VkSampler GetSampler() const;
30
31 private:
32 VulkanSampler(const VulkanSampler& other) = delete;
33
34 VkDevice device;
35 VkSampler sampler = VK_NULL_HANDLE;
36};
37
38} // namespace Video
Determines how a texture should be sampled.
Definition: Sampler.hpp:6
Filter
The interpolation to apply.
Definition: Sampler.hpp:9
Clamping
How to handle sampling outside the texture dimensions.
Definition: Sampler.hpp:16
Vulkan implementation of Sampler.
Definition: VulkanSampler.hpp:12
~VulkanSampler() final
Destructor.
Definition: VulkanSampler.cpp:61
VulkanSampler(VkDevice device, Filter filter, Clamping clamping)
Create new Vulkan sampler.
Definition: VulkanSampler.cpp:8
VkSampler GetSampler() const
Get the sampler.
Definition: VulkanSampler.cpp:65
Definition: Editor.hpp:18