mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
8756deec58
This gives us proper refcounting here, too. And there's no longer a difference between the different types of images.
32 lines
1.9 KiB
C
32 lines
1.9 KiB
C
#ifndef __GSK_VULKAN_IMAGE_PRIVATE_H__
|
|
#define __GSK_VULKAN_IMAGE_PRIVATE_H__
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GSK_TYPE_VULKAN_IMAGE (gsk_vulkan_image_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (GskVulkanImage, gsk_vulkan_image, GSK, VULKAN_IMAGE, GObject)
|
|
|
|
GskVulkanImage * gsk_vulkan_image_new_for_swapchain (GdkVulkanContext *context,
|
|
VkImage image,
|
|
VkFormat format,
|
|
gsize width,
|
|
gsize height);
|
|
GskVulkanImage * gsk_vulkan_image_new_from_data (GdkVulkanContext *context,
|
|
VkCommandBuffer command_buffer,
|
|
guchar *data,
|
|
gsize width,
|
|
gsize height,
|
|
gsize stride);
|
|
|
|
gsize gsk_vulkan_image_get_width (GskVulkanImage *self);
|
|
gsize gsk_vulkan_image_get_height (GskVulkanImage *self);
|
|
VkImage gsk_vulkan_image_get_image (GskVulkanImage *self);
|
|
VkImageView gsk_vulkan_image_get_image_view (GskVulkanImage *self);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GSK_VULKAN_IMAGE_PRIVATE_H__ */
|