mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
[vulkan] Give staging buffers storage usage
Really, additional usage flags should be a parameter. Needed for particles as the particle updates are read directly from the staging buffer.
This commit is contained in:
parent
efc3443c61
commit
dd1b15c92f
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ QFV_CreateStagingBuffer (qfv_device_t *device, const char *name, size_t size,
|
||||||
stage->device = device;
|
stage->device = device;
|
||||||
stage->cmdPool = cmdPool;
|
stage->cmdPool = cmdPool;
|
||||||
stage->buffer = QFV_CreateBuffer (device, size,
|
stage->buffer = QFV_CreateBuffer (device, size,
|
||||||
VK_BUFFER_USAGE_TRANSFER_SRC_BIT);
|
VK_BUFFER_USAGE_TRANSFER_SRC_BIT
|
||||||
|
//FIXME make a param
|
||||||
|
| VK_BUFFER_USAGE_STORAGE_BUFFER_BIT);
|
||||||
QFV_duSetObjectName (device, VK_OBJECT_TYPE_BUFFER, stage->buffer,
|
QFV_duSetObjectName (device, VK_OBJECT_TYPE_BUFFER, stage->buffer,
|
||||||
dsprintf (str, "staging:buffer:%s", name));
|
dsprintf (str, "staging:buffer:%s", name));
|
||||||
stage->memory = QFV_AllocBufferMemory (device, stage->buffer,
|
stage->memory = QFV_AllocBufferMemory (device, stage->buffer,
|
||||||
|
|
Loading…
Reference in a new issue