mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
vulkan: fill buffer with initial data if supplied
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user