2023-10-03 19:04:21 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "gskgpudescriptorsprivate.h"
|
|
|
|
|
2023-11-05 09:00:11 +00:00
|
|
|
#include "gskvulkandeviceprivate.h"
|
2023-10-03 19:04:21 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2023-11-05 09:00:11 +00:00
|
|
|
#define GSK_TYPE_VULKAN_DESCRIPTORS (gsk_vulkan_descriptors_get_type ())
|
|
|
|
#define GSK_VULKAN_DESCRIPTORS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GSK_TYPE_VULKAN_DESCRIPTORS, GskVulkanDescriptors))
|
|
|
|
#define GSK_VULKAN_DESCRIPTORS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GSK_TYPE_VULKAN_DESCRIPTORS, GskVulkanDescriptorsClass))
|
|
|
|
#define GSK_IS_VULKAN_DESCRIPTORS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GSK_TYPE_VULKAN_DESCRIPTORS))
|
|
|
|
#define GSK_IS_VULKAN_DESCRIPTORS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GSK_TYPE_VULKAN_DESCRIPTORS))
|
|
|
|
#define GSK_VULKAN_DESCRIPTORS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GSK_TYPE_VULKAN_DESCRIPTORS, GskVulkanDescriptorsClass))
|
|
|
|
|
|
|
|
typedef struct _GskVulkanDescriptorsClass GskVulkanDescriptorsClass;
|
|
|
|
|
|
|
|
struct _GskVulkanDescriptors
|
|
|
|
{
|
|
|
|
GskGpuDescriptors parent_instance;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _GskVulkanDescriptorsClass
|
|
|
|
{
|
|
|
|
GskGpuDescriptorsClass parent_class;
|
|
|
|
|
|
|
|
GskVulkanPipelineLayout * (* get_pipeline_layout) (GskVulkanDescriptors *self);
|
|
|
|
void (* bind) (GskVulkanDescriptors *self,
|
|
|
|
GskVulkanDescriptors *previous,
|
|
|
|
VkCommandBuffer vk_command_buffer);
|
|
|
|
};
|
|
|
|
|
|
|
|
GType gsk_vulkan_descriptors_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GskVulkanPipelineLayout * gsk_vulkan_descriptors_get_pipeline_layout (GskVulkanDescriptors *self);
|
|
|
|
|
|
|
|
void gsk_vulkan_descriptors_transition (GskVulkanDescriptors *self,
|
2023-11-29 22:14:00 +00:00
|
|
|
GskVulkanSemaphores *semaphores,
|
2023-11-05 09:00:11 +00:00
|
|
|
VkCommandBuffer vk_command_buffer);
|
|
|
|
void gsk_vulkan_descriptors_bind (GskVulkanDescriptors *self,
|
|
|
|
GskVulkanDescriptors *previous,
|
|
|
|
VkCommandBuffer vk_command_buffer);
|
|
|
|
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GskVulkanDescriptors, g_object_unref)
|
2023-10-03 19:04:21 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|