mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
render/vulkan: drop unused vulkan_has_extension()
This commit is contained in:
parent
42eec38ab6
commit
f60b367db7
2 changed files with 0 additions and 11 deletions
|
@ -367,7 +367,6 @@ struct wlr_vk_buffer_span {
|
||||||
};
|
};
|
||||||
|
|
||||||
// util
|
// util
|
||||||
bool vulkan_has_extension(size_t count, const char **exts, const char *find);
|
|
||||||
const char *vulkan_strerror(VkResult err);
|
const char *vulkan_strerror(VkResult err);
|
||||||
void vulkan_change_layout(VkCommandBuffer cb, VkImage img,
|
void vulkan_change_layout(VkCommandBuffer cb, VkImage img,
|
||||||
VkImageLayout ol, VkPipelineStageFlags srcs, VkAccessFlags srca,
|
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);
|
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…
Reference in a new issue