forked from AuroraMiddleware/gtk
2a0e7f8829
We can now upload vertices. And we use this to draw a yellow background. Which is clearly superior to not drawing anything. Also, we have shaders now. If you modify them, you need glslc installed so they can be recompiled into Spir-V bytecode.
22 lines
857 B
C
22 lines
857 B
C
#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);
|
|
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__ */
|