mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
53821da4d6
Introduce a new GskGpuImageDescriptors object that tracks descriptors for a set of images that can be managed by the GPU. Then have each GskGpuShaderOp just reference the descriptors object they are using, so that the coe can set things up properly. To reference an image, the ops now just reference their descriptor - which is the uint32 we've been sending to the shaders since forever.
18 lines
657 B
C
18 lines
657 B
C
#pragma once
|
|
|
|
#include "gskgpuframeprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GSK_TYPE_VULKAN_FRAME (gsk_vulkan_frame_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (GskVulkanFrame, gsk_vulkan_frame, GSK, VULKAN_FRAME, GskGpuFrame)
|
|
|
|
VkFence gsk_vulkan_frame_get_vk_fence (GskVulkanFrame *self) G_GNUC_PURE;
|
|
|
|
guint32 gsk_vulkan_frame_add_image (GskVulkanFrame *self,
|
|
GskGpuImage *image,
|
|
GskGpuSampler sampler);
|
|
|
|
G_END_DECLS
|