allowGPUOptimizedContents
A Boolean value indicating whether the GPU is allowed to adjust the texture’s contents to improve GPU performance.
Declaration
var allowGPUOptimizedContents: Bool { get set }Mentioned in
Discussion
The default value is true, which means that the Metal device is allowed to adjust the private layout of the texture in memory to improve GPU performance. For a shared or managed texture, this optimization can cause slower performance when accessing the texture from the CPU. Setting this property to false improves CPU performance at the cost of some GPU performance.