create staging buffer if GN_STATIC_DRAW

This commit is contained in:
Greg Wells
2025-06-06 13:38:11 -04:00
parent 64a12b5d42
commit ee1c2cdca2
3 changed files with 48 additions and 10 deletions

View File

@@ -1,7 +1,13 @@
#pragma once
#include <vulkan/vulkan.h>
#include "utils/gryphn_bool.h"
struct gnPlatformBuffer_t {
VkBuffer buffer;
VkDeviceMemory bufferMemory;
// for if static draw
VkBuffer stagingBuffer;
VkDeviceMemory stagingBufferMemory;
gnBool useStagingBuffer;
};