diff options
-rw-r--r-- | render/vulkan/renderer.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c index 658cc4b7..2adb1822 100644 --- a/render/vulkan/renderer.c +++ b/render/vulkan/renderer.c @@ -2247,26 +2247,22 @@ struct wlr_renderer *wlr_vk_renderer_create_with_drm_fd(int drm_fd) { 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); 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); 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); 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); return vk_renderer->dev->queue_family; } |