mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
1bd820fc60
Instead of scale and whatnot, pass: 1. The image size 2. The viewport to map to that image size and compute everything else from there. In particular, we set the Vulkan viewport to the image dimensions instead of the viewport size. All of this makes things a lot simpler while keeping the required functionality.
24 lines
1.4 KiB
C
24 lines
1.4 KiB
C
#pragma once
|
|
|
|
#include "gskvulkanopprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
void gsk_vulkan_render_pass_begin_op (GskVulkanRender *render,
|
|
GskVulkanImage *image,
|
|
const cairo_rectangle_int_t *area,
|
|
VkImageLayout initial_layout,
|
|
VkImageLayout final_layout);
|
|
void gsk_vulkan_render_pass_end_op (GskVulkanRender *render,
|
|
GskVulkanImage *image,
|
|
VkImageLayout final_layout);
|
|
|
|
GskVulkanImage * gsk_vulkan_render_pass_op_offscreen (GskVulkanRender *render,
|
|
const graphene_vec2_t *scale,
|
|
const graphene_rect_t *viewport,
|
|
GskRenderNode *node);
|
|
|
|
G_END_DECLS
|
|
|