Enum gfx_core::factory::Usage
[−]
[src]
pub enum Usage { GpuOnly, Const, Dynamic, CpuOnly(MapAccess), }
A hint as to how this buffer/texture will be used.
The nature of these hints make them very implementation specific. Different drivers on different hardware will handle them differently. Only careful profiling will tell which is the best to use for a specific buffer.
Variants
GpuOnly | GPU: read + write, CPU: copy. Optimal for render targets. | |
Const | GPU: read, CPU: none. Optimal for resourced textures/buffers. | |
Dynamic | GPU: read, CPU: write. | |
CpuOnly | GPU: copy, CPU: as specified. Used as a staging buffer, to be copied back and forth with on-GPU targets. |