2023-08-12 20:10:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-08-21 00:18:37 +00:00
|
|
|
#include "gskgpubufferprivate.h"
|
|
|
|
|
2023-08-12 20:10:16 +00:00
|
|
|
#include "gskvulkandeviceprivate.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2023-08-21 00:18:37 +00:00
|
|
|
#define GSK_TYPE_VULKAN_BUFFER (gsk_vulkan_buffer_get_type ())
|
2023-08-12 20:10:16 +00:00
|
|
|
|
2023-08-21 00:18:37 +00:00
|
|
|
G_DECLARE_FINAL_TYPE (GskVulkanBuffer, gsk_vulkan_buffer, GSK, VULKAN_BUFFER, GskGpuBuffer)
|
2023-08-12 20:10:16 +00:00
|
|
|
|
2023-08-21 00:18:37 +00:00
|
|
|
GskGpuBuffer * gsk_vulkan_buffer_new_vertex (GskVulkanDevice *device,
|
|
|
|
gsize size);
|
|
|
|
GskGpuBuffer * gsk_vulkan_buffer_new_storage (GskVulkanDevice *device,
|
2023-08-12 20:10:16 +00:00
|
|
|
gsize size);
|
2023-08-21 00:18:37 +00:00
|
|
|
GskGpuBuffer * gsk_vulkan_buffer_new_write (GskVulkanDevice *device,
|
2023-08-12 20:10:16 +00:00
|
|
|
gsize size);
|
2023-08-21 00:18:37 +00:00
|
|
|
GskGpuBuffer * gsk_vulkan_buffer_new_read (GskVulkanDevice *device,
|
|
|
|
gsize size);
|
|
|
|
|
|
|
|
VkBuffer gsk_vulkan_buffer_get_vk_buffer (GskVulkanBuffer *self);
|
2023-08-12 20:10:16 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|