|
| | DeviceMemoryPool (VkPhysicalDeviceProperties2 device_props, VkPhysicalDeviceMaintenance3Properties maintenance_props, VkPhysicalDeviceMemoryProperties memory_props) |
| DeviceMemory * | get (VkDevice const &device, VkDeviceSize const size, std::uint32_t const memory_type, VkBufferUsageFlags const usage, VkDeviceSize const alignment, DeviceBufferType const buffer_type, bool force_new=false) __attribute__((no_thread_safety_analysis)) |
| void | clear (DeviceMemory &device_memory) |
| void | clear () |
◆ DeviceBufferType
| Enumerator |
|---|
| UNIFORM | |
| STAGING | |
| VERTEX | |
◆ DeviceMemoryPool()
| Vyroda::DeviceMemoryPool::DeviceMemoryPool |
( |
VkPhysicalDeviceProperties2 | device_props, |
|
|
VkPhysicalDeviceMaintenance3Properties | maintenance_props, |
|
|
VkPhysicalDeviceMemoryProperties | memory_props ) |
Create a device memory pool that will manage different kinds of memory
- Parameters
-
| VkPhysicalDeviceProperties2 | device_props |
| VkPhysicalDeviceMaintenance3Properties | maintenance_props |
| VkPhysicalDeviceMemoryProperties | memory_props |
◆ clear() [1/2]
| void Vyroda::DeviceMemoryPool::clear |
( |
| ) |
|
◆ clear() [2/2]
| void Vyroda::DeviceMemoryPool::clear |
( |
DeviceMemory & | device_memory | ) |
|
Clear a device memory
- Parameters
-
| DeviceMemory* | deviceMemory |
◆ get()
| DeviceMemory * Vyroda::DeviceMemoryPool::get |
( |
VkDevice const & | device, |
|
|
VkDeviceSize const | size, |
|
|
std::uint32_t const | memory_type, |
|
|
VkBufferUsageFlags const | usage, |
|
|
VkDeviceSize const | alignment, |
|
|
DeviceBufferType const | buffer_type, |
|
|
bool | force_new = false ) |
Request a memory device
- Parameters
-
| VkDevice | device |
| VkDevicesize | size |
| uint32_t | memory_type |
| VkBufferusageflags | usage |
| VkDevicesize | alignment |
| Devicebuffertype | buffer_type |
| bool | forceNew |
- Returns
- DeviceMemory*
The documentation for this class was generated from the following files: