From: Mikko Rasa Date: Thu, 1 Sep 2022 19:36:14 +0000 (+0300) Subject: Make VulkanFramebuffer::is_format_supported const X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=83fa2fe020c781516a0eadd475448fd0263d75dd;p=libs%2Fgl.git Make VulkanFramebuffer::is_format_supported const --- diff --git a/source/backends/vulkan/framebuffer_backend.cpp b/source/backends/vulkan/framebuffer_backend.cpp index 8f82f3f1..dcf63e98 100644 --- a/source/backends/vulkan/framebuffer_backend.cpp +++ b/source/backends/vulkan/framebuffer_backend.cpp @@ -33,7 +33,7 @@ VulkanFramebuffer::~VulkanFramebuffer() dq.destroy(h); } -bool VulkanFramebuffer::is_format_supported(const FrameFormat &fmt) +bool VulkanFramebuffer::is_format_supported(const FrameFormat &fmt) const { const VulkanFunctions &vk = device.get_functions(); for(FrameAttachment a: fmt) diff --git a/source/backends/vulkan/framebuffer_backend.h b/source/backends/vulkan/framebuffer_backend.h index faca5658..be336a97 100644 --- a/source/backends/vulkan/framebuffer_backend.h +++ b/source/backends/vulkan/framebuffer_backend.h @@ -27,7 +27,7 @@ protected: VulkanFramebuffer(VulkanFramebuffer &&); ~VulkanFramebuffer(); - bool is_format_supported(const FrameFormat &); + bool is_format_supported(const FrameFormat &) const; void format_changed(const FrameFormat &) { } static void require_layered() { }