NAP
bufferdata.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7  // External Includes
8 #include <vulkan/vulkan_core.h>
9 #include <utility/dllexport.h>
10 #include <nap/numeric.h>
11 #include <utility/errorstate.h>
12 
13 // Local Includes
14 #include "vk_mem_alloc.h"
15 
16 namespace nap
17 {
22  struct NAPAPI BufferData
23  {
24  // Default constructor
25  BufferData() = default;
26 
30  void release();
31 
32  VmaAllocation mAllocation = VK_NULL_HANDLE;
33  VmaAllocationInfo mAllocationInfo;
34  VkBufferUsageFlags mUsage = 0;
35  VkBuffer mBuffer = VK_NULL_HANDLE;
36  };
37 }
nap::BufferData::mAllocationInfo
VmaAllocationInfo mAllocationInfo
Vulkan allocation information.
Definition: bufferdata.h:33
nap::BufferData
Definition: bufferdata.h:22
nap
Definition: templateapp.h:17