LibGfx: Make VulkanImage::get_dma_buf_fd() const
This commit is contained in:
parent
de14978046
commit
d093edbe6d
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue