Adds the resources in a heap to the render 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 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
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.