mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
render/vulkan: fix code style for function brackets
This commit is contained in:
parent
ec796afb6e
commit
403eac51c4
1 changed files with 4 additions and 8 deletions
|
@ -2247,26 +2247,22 @@ struct wlr_renderer *wlr_vk_renderer_create_with_drm_fd(int drm_fd) {
|
||||||
return vulkan_renderer_create_for_device(dev);
|
return vulkan_renderer_create_for_device(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
VkInstance wlr_vk_renderer_get_instance(struct wlr_renderer *renderer)
|
VkInstance wlr_vk_renderer_get_instance(struct wlr_renderer *renderer) {
|
||||||
{
|
|
||||||
struct wlr_vk_renderer *vk_renderer = vulkan_get_renderer(renderer);
|
struct wlr_vk_renderer *vk_renderer = vulkan_get_renderer(renderer);
|
||||||
return vk_renderer->dev->instance->instance;
|
return vk_renderer->dev->instance->instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
VkPhysicalDevice wlr_vk_renderer_get_physical_device(struct wlr_renderer *renderer)
|
VkPhysicalDevice wlr_vk_renderer_get_physical_device(struct wlr_renderer *renderer) {
|
||||||
{
|
|
||||||
struct wlr_vk_renderer *vk_renderer = vulkan_get_renderer(renderer);
|
struct wlr_vk_renderer *vk_renderer = vulkan_get_renderer(renderer);
|
||||||
return vk_renderer->dev->phdev;
|
return vk_renderer->dev->phdev;
|
||||||
}
|
}
|
||||||
|
|
||||||
VkDevice wlr_vk_renderer_get_device(struct wlr_renderer *renderer)
|
VkDevice wlr_vk_renderer_get_device(struct wlr_renderer *renderer) {
|
||||||
{
|
|
||||||
struct wlr_vk_renderer *vk_renderer = vulkan_get_renderer(renderer);
|
struct wlr_vk_renderer *vk_renderer = vulkan_get_renderer(renderer);
|
||||||
return vk_renderer->dev->dev;
|
return vk_renderer->dev->dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t wlr_vk_renderer_get_queue_family(struct wlr_renderer *renderer)
|
uint32_t wlr_vk_renderer_get_queue_family(struct wlr_renderer *renderer) {
|
||||||
{
|
|
||||||
struct wlr_vk_renderer *vk_renderer = vulkan_get_renderer(renderer);
|
struct wlr_vk_renderer *vk_renderer = vulkan_get_renderer(renderer);
|
||||||
return vk_renderer->dev->queue_family;
|
return vk_renderer->dev->queue_family;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue