Specifies that a resource in an argument buffer can be safely used by a compute pass.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
A specific resource within an argument buffer.
The options that describe how the resource will be used by a compute function.
This method makes the resource resident for the duration of a compute pass and ensures that it's in a format compatible with the compute function.
Call this method before issuing any dispatch calls that may access the resource. Calling this method again, or calling
use, overwrites any previously specified usage options for future dispatch calls within the same compute command encoder.