mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-07 06:08:16 +03:00
26 lines
523 B
C++
26 lines
523 B
C++
/*
|
|
by korenkonder
|
|
GitHub/GitLab: korenkonder
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "Buffer.hpp"
|
|
#include "CommandBuffer.hpp"
|
|
|
|
namespace Vulkan {
|
|
class StorageBuffer : public Buffer {
|
|
public:
|
|
inline StorageBuffer() {
|
|
|
|
}
|
|
|
|
inline bool Create(VmaAllocator allocator, size_t size) {
|
|
return Buffer::Create(allocator, size,
|
|
VK_BUFFER_USAGE_TRANSFER_DST_BIT
|
|
| VK_BUFFER_USAGE_STORAGE_BUFFER_BIT,
|
|
VMA_MEMORY_USAGE_AUTO, 0);
|
|
}
|
|
};
|
|
}
|