render/vulkan: drop unused vulkan_has_extension()

This commit is contained in:
Simon Ser 2023-05-24 11:23:37 +02:00
parent 42eec38ab6
commit f60b367db7
2 changed files with 0 additions and 11 deletions

View File

@ -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,

View File

@ -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;
}