Home -> IResourceArray -> PerformanceHint
Description
The PerformanceHint enumeration provides CPU and GPU read/write usage hints for resource arrays. The hints are supplied through SetPerformanceHints and may influence memory placement, staging, and synchronization choices.
Members
| Name | Description | |
|---|---|---|
| Default |
Uses the renderer default storage and synchronization behaviour for this resource.
|
|
| ReadNever |
Indicates that the application does not expect to read the resource from the CPU after creation or update.
|
|
| ReadRarely |
Indicates that CPU reads are possible but uncommon, allowing the renderer to favour GPU efficient storage.
|
|
| ReadOften |
Indicates that the resource may be read frequently by the CPU, allowing the renderer to choose storage or staging behaviour suited to repeated readback.
|
|
| ReadFlagsMask |
Masks the CPU read behaviour bits. This value is intended for validation and bitwise operations rather than direct selection.
|
|
| WriteNever |
Indicates that the application does not expect to write new CPU data after initial contents are established.
|
|
| WriteRarely |
Indicates that CPU writes are possible but uncommon, allowing the renderer to favour storage that is efficient for normal GPU use.
|
|
| WriteOften |
Indicates that the application expects frequent CPU updates, allowing the renderer to use upload paths suited to repeated writes.
|
|
| WriteFlagsMask |
Masks the CPU write behaviour bits. This value is intended for validation and bitwise operations rather than direct selection.
|