summaryrefslogtreecommitdiff
path: root/gsk/vulkan/gskvulkanbufferprivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'gsk/vulkan/gskvulkanbufferprivate.h')
-rw-r--r--gsk/vulkan/gskvulkanbufferprivate.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/gsk/vulkan/gskvulkanbufferprivate.h b/gsk/vulkan/gskvulkanbufferprivate.h
new file mode 100644
index 0000000000..700e400528
--- /dev/null
+++ b/gsk/vulkan/gskvulkanbufferprivate.h
@@ -0,0 +1,25 @@
+#ifndef __GSK_VULKAN_BUFFER_PRIVATE_H__
+#define __GSK_VULKAN_BUFFER_PRIVATE_H__
+
+#include <gdk/gdk.h>
+
+G_BEGIN_DECLS
+
+typedef struct _GskVulkanBuffer GskVulkanBuffer;
+
+GskVulkanBuffer * gsk_vulkan_buffer_new (GdkVulkanContext *context,
+ gsize size);
+GskVulkanBuffer * gsk_vulkan_buffer_new_staging (GdkVulkanContext *context,
+ gsize size);
+GskVulkanBuffer * gsk_vulkan_buffer_new_download (GdkVulkanContext *context,
+ gsize size);
+void gsk_vulkan_buffer_free (GskVulkanBuffer *buffer);
+
+VkBuffer gsk_vulkan_buffer_get_buffer (GskVulkanBuffer *self);
+
+guchar * gsk_vulkan_buffer_map (GskVulkanBuffer *self);
+void gsk_vulkan_buffer_unmap (GskVulkanBuffer *self);
+
+G_END_DECLS
+
+#endif /* __GSK_VULKAN_BUFFER_PRIVATE_H__ */