Skip to content

Commit 1299c9a

Browse files
Documentation of enum VmaMemoryUsage: Added DirectX 12 equivalents.
1 parent 20e500e commit 1299c9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vk_mem_alloc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ typedef enum VmaMemoryUsage
953953
/** Memory will be used on device only, so fast access from the device is preferred.
954954
It usually means device-local GPU (video) memory.
955955
No need to be mappable on host.
956+
It is roughly equivalent of D3D12_HEAP_TYPE_DEFAULT.
956957
957958
Usage:
958959
@@ -971,6 +972,7 @@ typedef enum VmaMemoryUsage
971972
Resources created in this pool are still accessible to the device, but access to them can be slower.
972973
Guarantees to be `HOST_VISIBLE` and `HOST_COHERENT`.
973974
CPU read may be uncached.
975+
It is roughly equivalent of D3D12_HEAP_TYPE_UPLOAD.
974976
975977
Usage: Staging copy of resources used as transfer source.
976978
*/
@@ -983,6 +985,7 @@ typedef enum VmaMemoryUsage
983985
*/
984986
VMA_MEMORY_USAGE_CPU_TO_GPU = 3,
985987
/** Memory mappable on host (guarantees to be `HOST_VISIBLE`) and cached.
988+
It is roughly equivalent of D3D12_HEAP_TYPE_READBACK.
986989
987990
Usage:
988991

0 commit comments

Comments
 (0)