Home -> IResourceArray -> SetPerformanceHints

Description

The SetPerformanceHints method provides CPU and GPU read/write usage hints for a resource array. These hints help the renderer choose memory placement, staging behaviour, and synchronization paths that match the expected usage pattern.

The CPU hint describes how application code expects to read or write the resource. The GPU hint describes how shader or transfer work is expected to access it. Correct hints are especially useful for large arrays, frequently updated data, and resources that are read back to the CPU.

ImportantImportant

Performance hints do not grant permission to use a resource in a particular way. Required operations still need the appropriate usage flags and a compatible allocation.

Usage

void SetPerformanceHints(PerformanceHint performanceHintCpu, PerformanceHint performanceHintGpu);

Argument list

performanceHintCpu [PerformanceHint]
The hint describing how the CPU is expected to read from or write to the resource.
performanceHintGpu [PerformanceHint]
The hint describing how the GPU is expected to read from or write to the resource.

See also