mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 12:41:07 +00:00
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.
24 lines
1.1 KiB
C
24 lines
1.1 KiB
C
#ifndef __GSK_VULKAN_MEMORY_PRIVATE_H__
|
|
#define __GSK_VULKAN_MEMORY_PRIVATE_H__
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
typedef struct _GskVulkanMemory GskVulkanMemory;
|
|
|
|
GskVulkanMemory * gsk_vulkan_memory_new (GdkVulkanContext *context,
|
|
uint32_t allowed_types,
|
|
VkMemoryPropertyFlags properties,
|
|
gsize size);
|
|
void gsk_vulkan_memory_free (GskVulkanMemory *memory);
|
|
|
|
VkDeviceMemory gsk_vulkan_memory_get_device_memory (GskVulkanMemory *self);
|
|
|
|
guchar * gsk_vulkan_memory_map (GskVulkanMemory *self);
|
|
void gsk_vulkan_memory_unmap (GskVulkanMemory *self);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GSK_VULKAN_MEMORY_PRIVATE_H__ */
|