LibGfx: Make VulkanImage::get_dma_buf_fd() const

This commit is contained in:
Aliaksandr Kalenik 2026-04-13 18:05:54 +02:00 committed by Alexander Kalenik
parent de14978046
commit d093edbe6d
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ void VulkanImage::transition_layout(VkImageLayout old_layout, VkImageLayout new_
vkQueueWaitIdle(context.graphics_queue);
}
int VulkanImage::get_dma_buf_fd()
int VulkanImage::get_dma_buf_fd() const
{
VkMemoryGetFdInfoKHR get_fd_info = {
.sType = VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR,

View file

@ -31,7 +31,7 @@ struct VulkanImage : public RefCounted<VulkanImage> {
} info;
VulkanContext const& context;
int get_dma_buf_fd();
int get_dma_buf_fd() const;
void transition_layout(VkImageLayout old_layout, VkImageLayout new_layout);
VulkanImage(VulkanContext const& context)
: context(context)