To modify the priority of an existing memory allocation, call:
// Provided by VK_EXT_pageable_device_local_memory void vkSetDeviceMemoryPriorityEXT( VkDevice device, VkDeviceMemory memory, float priority);
deviceis the logical device that owns the memory.
memoryis the VkDeviceMemory object to which the new priority will be applied.
priorityis a floating-point value between
1, indicating the priority of the allocation relative to other memory allocations. Larger values are higher priority. The granularity of the priorities is implementation-dependent.
Memory allocations with higher priority may be more likely to stay in device-local memory when the system is under memory pressure.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.