]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/sampler_backend.h
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / sampler_backend.h
1 #ifndef MSP_GL_SAMPLER_BACKEND_H_
2 #define MSP_GL_SAMPLER_BACKEND_H_
3
4 #include "handles.h"
5
6 namespace Msp {
7 namespace GL {
8
9 class VulkanSampler
10 {
11         friend class VulkanPipelineState;
12
13 protected:
14         VkSampler handle;
15
16         VulkanSampler();
17         VulkanSampler(VulkanSampler &&);
18         ~VulkanSampler();
19
20         static bool check_anisotropic(bool) { return true; }
21
22         void update(unsigned) const;
23
24         void set_debug_name(const std::string &);
25 };
26
27 using SamplerBackend = VulkanSampler;
28
29 } // namespace GL
30 } // namespace Msp
31
32 #endif