2023-03-31 19:11:10 +00:00
|
|
|
#pragma once
|
2016-12-05 01:50:06 +00:00
|
|
|
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _GskVulkanMemory GskVulkanMemory;
|
|
|
|
|
|
|
|
GskVulkanMemory * gsk_vulkan_memory_new (GdkVulkanContext *context,
|
|
|
|
uint32_t allowed_types,
|
|
|
|
VkMemoryPropertyFlags properties,
|
|
|
|
gsize size);
|
|
|
|
void gsk_vulkan_memory_free (GskVulkanMemory *memory);
|
|
|
|
|
|
|
|
VkDeviceMemory gsk_vulkan_memory_get_device_memory (GskVulkanMemory *self);
|
|
|
|
|
2023-06-14 00:55:32 +00:00
|
|
|
gboolean gsk_vulkan_memory_can_map (GskVulkanMemory *self,
|
|
|
|
gboolean fast);
|
2016-12-05 01:50:06 +00:00
|
|
|
guchar * gsk_vulkan_memory_map (GskVulkanMemory *self);
|
|
|
|
void gsk_vulkan_memory_unmap (GskVulkanMemory *self);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|