Adds the resources in a heap to the render pass, specifying which render stages need them.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
A heap that contains resources within an argument buffer.
The render stages where the resources must be resident.
This method makes all the resources in the heap resident for the duration of the render pass and ensures that they're in a format compatible with the graphics function.
Call this method before issuing any draw calls that access the resources in the heap.
You may only read or sample resources within the specified heap. This method ignores render targets (textures that specify a
render usage option) and writable textures (textures that specify a
shader usage option) within the heap. To use these resources, you must call the
use(_: method instead.