create staging buffer if GN_STATIC_DRAW
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user