mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +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.
27 lines
1.1 KiB
C
27 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include <gdk/gdk.h>
|
|
#include <gsk/gskrendernode.h>
|
|
|
|
#include "gskvulkanbufferprivate.h"
|
|
#include "gskvulkanprivate.h"
|
|
#include "gskvulkanrenderprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
GskVulkanRenderPass * gsk_vulkan_render_pass_new (void);
|
|
|
|
void gsk_vulkan_render_pass_free (GskVulkanRenderPass *self);
|
|
|
|
void gsk_vulkan_render_pass_add (GskVulkanRenderPass *self,
|
|
GskVulkanRender *render,
|
|
int width,
|
|
int height,
|
|
cairo_rectangle_int_t *clip,
|
|
GskRenderNode *node,
|
|
const graphene_rect_t *viewport);
|
|
|
|
G_END_DECLS
|
|
|