From 1299c9ad79bb2dcd7b7eaf8df48baeef53f867d7 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Tue, 13 Feb 2018 11:49:59 +0100 Subject: [PATCH] Documentation of enum VmaMemoryUsage: Added DirectX 12 equivalents. --- src/vk_mem_alloc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 64d4f34..9875ff0 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -953,6 +953,7 @@ typedef enum VmaMemoryUsage /** Memory will be used on device only, so fast access from the device is preferred. It usually means device-local GPU (video) memory. No need to be mappable on host. + It is roughly equivalent of D3D12_HEAP_TYPE_DEFAULT. Usage: @@ -971,6 +972,7 @@ typedef enum VmaMemoryUsage Resources created in this pool are still accessible to the device, but access to them can be slower. Guarantees to be `HOST_VISIBLE` and `HOST_COHERENT`. CPU read may be uncached. + It is roughly equivalent of D3D12_HEAP_TYPE_UPLOAD. Usage: Staging copy of resources used as transfer source. */ @@ -983,6 +985,7 @@ typedef enum VmaMemoryUsage */ VMA_MEMORY_USAGE_CPU_TO_GPU = 3, /** Memory mappable on host (guarantees to be `HOST_VISIBLE`) and cached. + It is roughly equivalent of D3D12_HEAP_TYPE_READBACK. Usage: