Specifies that a heap containing resources 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 heap that contains resources within an argument buffer.
This method makes all the resources in the heap resident for the duration of a compute pass and ensures that they're in a format compatible with the compute function.
Call this method before issuing any dispatch calls that may access the resources in the heap.
Resources within the specified heap can only be read or sampled from. This method ignores render targets (textures that specify a
MTLTexture usage option) and writable textures (textures that specify a
MTLTexture usage option) within the heap. To use these resources, you must call the
use method instead.