Enum GPUResourceUsage
Identifies expected GPU resource use during rendering. The usage directly reflects whether a resource is accessible by the CPU and/or the GPU.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public enum GPUResourceUsage
Fields
Name | Description |
---|---|
Default | A resource that requires read and write access by the GPU. This is likely to be the most common usage choice. Memory will be used on device only, so fast access from the device is preferred. It usually means device-local GPU (video) memory. |
Dynamic | A resource that is accessible by both the GPU (read only) and the CPU (write only). A dynamic resource is a good choice for a resource that will be updated by the CPU at least once per frame. Dynamic buffers or textures are usually used to upload data to GPU and use it within a single frame. |
StagingReadback | A resource that supports data transfer (copy) from the GPU to the CPU. |
StagingUpload | A resource that supports data transfer (copy) from the CPU to the GPU. It usually means CPU (system) memory. Resources created in this pool may still be accessible to the device, but access to them can be slow. |