diff options
-rw-r--r-- | include/render/vulkan.h | 1 | ||||
-rw-r--r-- | render/vulkan/util.c | 10 |
2 files changed, 0 insertions, 11 deletions
diff --git a/include/render/vulkan.h b/include/render/vulkan.h index 021c5289..087a9284 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -367,7 +367,6 @@ struct wlr_vk_buffer_span { }; // util -bool vulkan_has_extension(size_t count, const char **exts, const char *find); const char *vulkan_strerror(VkResult err); void vulkan_change_layout(VkCommandBuffer cb, VkImage img, VkImageLayout ol, VkPipelineStageFlags srcs, VkAccessFlags srca, diff --git a/render/vulkan/util.c b/render/vulkan/util.c index 7af0ec58..8c31dc79 100644 --- a/render/vulkan/util.c +++ b/render/vulkan/util.c @@ -76,13 +76,3 @@ void vulkan_change_layout(VkCommandBuffer cb, VkImage img, }; vkCmdPipelineBarrier(cb, srcs, dsts, 0, 0, NULL, 0, NULL, 1, &barrier); } - -bool vulkan_has_extension(size_t count, const char **exts, const char *find) { - for (unsigned i = 0; i < count; ++i) { - if (strcmp(exts[i], find) == 0) { - return true; - } - } - - return false; -} |