mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
67fb129ed7
Instead of having a setter for the transform, have a GskTransformNode. Most of the oprations that GTK does do not require a transform, so it doesn't make sense to have it as a primary attribute. Also, changing the transform requires updating the uniforms of the GL renderer, so we're happy if we can avoid that.
41 lines
2.4 KiB
C
41 lines
2.4 KiB
C
#ifndef __GSK_VULKAN_RENDER_PASS_PRIVATE_H__
|
|
#define __GSK_VULKAN_RENDER_PASS_PRIVATE_H__
|
|
|
|
#include <gdk/gdk.h>
|
|
#include <gsk/gskrendernode.h>
|
|
|
|
#include "gsk/gskvulkanrenderprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _GskVulkanRenderPass GskVulkanRenderPass;
|
|
|
|
GskVulkanRenderPass * gsk_vulkan_render_pass_new (GdkVulkanContext *context);
|
|
void gsk_vulkan_render_pass_free (GskVulkanRenderPass *self);
|
|
|
|
void gsk_vulkan_render_pass_add (GskVulkanRenderPass *self,
|
|
GskVulkanRender *render,
|
|
const graphene_matrix_t*mvp,
|
|
GskRenderNode *node);
|
|
|
|
void gsk_vulkan_render_pass_upload (GskVulkanRenderPass *self,
|
|
GskVulkanRender *render,
|
|
VkCommandBuffer command_buffer);
|
|
|
|
gsize gsk_vulkan_render_pass_count_vertices (GskVulkanRenderPass *self);
|
|
gsize gsk_vulkan_render_pass_collect_vertices (GskVulkanRenderPass *self,
|
|
GskVulkanVertex *vertices,
|
|
gsize offset,
|
|
gsize total);
|
|
|
|
void gsk_vulkan_render_pass_reserve_descriptor_sets (GskVulkanRenderPass *self,
|
|
GskVulkanRender *render);
|
|
void gsk_vulkan_render_pass_draw (GskVulkanRenderPass *self,
|
|
GskVulkanRender *render,
|
|
GskVulkanPipeline *pipeline,
|
|
VkCommandBuffer command_buffer);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GSK_VULKAN_RENDER_PASS_PRIVATE_H__ */
|