vulkan: fill buffer with initial data if supplied

This commit is contained in:
niki
2022-09-21 14:03:06 +02:00
parent 26ec23f4ba
commit 503b17a5fc
2 changed files with 14 additions and 2 deletions
+4
View File
@@ -20,6 +20,8 @@
#pragma once
#include "common/Range.h"
#include "graphics/Buffer.h"
#include "graphics/Volatile.h"
@@ -55,6 +57,7 @@ public:
private:
bool zeroInitialize;
const void *initialData;
VkBuffer buffer = VK_NULL_HANDLE;
VkBuffer stagingBuffer = VK_NULL_HANDLE;
VkBufferView bufferView = VK_NULL_HANDLE;
@@ -65,6 +68,7 @@ private:
VmaAllocationInfo allocInfo;
VmaAllocationInfo stagingAllocInfo;
BufferUsageFlags usageFlags;
Range mappedRange;
};
} // vulkan