BufferVK.h 507 B

123456789101112131415161718192021
  1. // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
  2. // SPDX-FileCopyrightText: 2024 Jorrit Rouwe
  3. // SPDX-License-Identifier: MIT
  4. #pragma once
  5. #include <vulkan/vulkan.h>
  6. /// Simple wrapper class to manage a Vulkan buffer
  7. class BufferVK
  8. {
  9. public:
  10. VkBuffer mBuffer = VK_NULL_HANDLE;
  11. VkDeviceMemory mMemory = VK_NULL_HANDLE;
  12. VkDeviceSize mOffset = 0;
  13. VkDeviceSize mSize = 0;
  14. VkBufferUsageFlags mUsage;
  15. VkMemoryPropertyFlags mProperties;
  16. VkDeviceSize mAllocatedSize;
  17. };