Value | Meaning |
---|---|
unknown | No intended usage. The type of memory will not be influenced by the usage. |
gpuOnly | Memory will be used on device only (MemProps.deviceLocal) and having it mappable on host is not requested (although it is possible on some devices). Usage:
|
cpuOnly | Memory will be mappable on host. It usually means CPU (system) memory. Resources created for this usage may still be accessible to the device, but access to them can be slower. Guarantees to be MemProps.hostVisible and MemProps.hostCoherent. Usage:
|
cpuToGpu | Memory that is both mappable on host (guarantees to be MemProps.hostVisible) and preferably fast to access by GPU. CPU reads may be uncached and very slow. Usage:
|
gpuToCpu | Memory mappable on host (guarantees to be MemProps.hostVisible) and cached. Usage:
|
Describes the usage of a memory allocation