render/vulkan: drop unused vulkan_has_extension()

master
Simon Ser 2 years ago
parent 42eec38ab6
commit f60b367db7

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

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

Loading…
Cancel
Save