]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/sampler_backend.h
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / sampler_backend.h
diff --git a/source/backends/vulkan/sampler_backend.h b/source/backends/vulkan/sampler_backend.h
new file mode 100644 (file)
index 0000000..58ca8a4
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef MSP_GL_SAMPLER_BACKEND_H_
+#define MSP_GL_SAMPLER_BACKEND_H_
+
+#include "handles.h"
+
+namespace Msp {
+namespace GL {
+
+class VulkanSampler
+{
+       friend class VulkanPipelineState;
+
+protected:
+       VkSampler handle;
+
+       VulkanSampler();
+       VulkanSampler(VulkanSampler &&);
+       ~VulkanSampler();
+
+       static bool check_anisotropic(bool) { return true; }
+
+       void update(unsigned) const;
+
+       void set_debug_name(const std::string &);
+};
+
+using SamplerBackend = VulkanSampler;
+
+} // namespace GL
+} // namespace Msp
+
+#endif