write all the vulkan functions

This commit is contained in:
Gregory Wells
2025-06-14 14:39:40 -04:00
parent cf28a502dd
commit bc64fc0731
4 changed files with 152 additions and 14 deletions

View File

@@ -3,10 +3,18 @@
#include "core/textures/gryphn_texture.h"
#include "buffers/vulkan_buffer.h"
typedef struct gnPlatformTexture_t {
VkGryphnBuffer buffer;
typedef struct VkGryphnImage {
VkImage image;
VkDeviceMemory memory;
VkImageView imageView;
} VkGryphnImage;
void gnDestroyVulkanImage(VkGryphnImage* image, VkDevice device);
typedef struct gnPlatformTexture_t {
VkGryphnBuffer buffer;
VkGryphnImage image;
size_t size;
uint32_t width, height;
gnBool beenWrittenToo;
} gnPlatformTexture;