namespace Msp {
namespace GL {
+class Device;
+
class VulkanSampler
{
friend class VulkanPipelineState;
protected:
- VkSampler handle;
+ Device &device;
+ mutable VkSampler handle = 0;
+ std::string debug_name;
VulkanSampler();
VulkanSampler(VulkanSampler &&);
void update(unsigned) const;
void set_debug_name(const std::string &);
+ void set_vulkan_object_name() const;
};
using SamplerBackend = VulkanSampler;
+unsigned get_vulkan_filter(unsigned);
+unsigned get_vulkan_mipmap_mode(unsigned);
+unsigned get_vulkan_address_mode(unsigned);
+
} // namespace GL
} // namespace Msp