mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
1a85d569e3
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.
26 lines
1.2 KiB
C
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
|
|
|