2016-12-05 01:50:06 +00:00
|
|
|
#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);
|
2016-12-15 23:22:23 +00:00
|
|
|
GskVulkanBuffer * gsk_vulkan_buffer_new_staging (GdkVulkanContext *context,
|
|
|
|
gsize size);
|
2016-12-05 01:50:06 +00:00
|
|
|
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__ */
|