gtk/gsk/gpu/gskvulkanbufferprivate.h
Benjamin Otte 1a85d569e3 gpu: Add ability to run shaders
This heaves over an inital chunk of code from the Vulkan renderer to
execute shaders.

The only shader that exists for now is a shader that draws a single
texture.
We use that to replace the blit op we were doing before.
2024-01-07 07:22:49 +01:00

26 lines
1.2 KiB
C

#pragma once
#include "gskgpubufferprivate.h"
#include "gskvulkandeviceprivate.h"
G_BEGIN_DECLS
#define GSK_TYPE_VULKAN_BUFFER (gsk_vulkan_buffer_get_type ())
G_DECLARE_FINAL_TYPE (GskVulkanBuffer, gsk_vulkan_buffer, GSK, VULKAN_BUFFER, GskGpuBuffer)
GskGpuBuffer * gsk_vulkan_buffer_new_vertex (GskVulkanDevice *device,
gsize size);
GskGpuBuffer * gsk_vulkan_buffer_new_storage (GskVulkanDevice *device,
gsize size);
GskGpuBuffer * gsk_vulkan_buffer_new_write (GskVulkanDevice *device,
gsize size);
GskGpuBuffer * gsk_vulkan_buffer_new_read (GskVulkanDevice *device,
gsize size);
VkBuffer gsk_vulkan_buffer_get_vk_buffer (GskVulkanBuffer *self);
G_END_DECLS