Optimize resource performance within an argument buffer.
The Metal driver cannot automatically track the residency of argument buffer resources. You must track it manually.
Track Argument Buffer Resource Residency Manually
These methods perform two important functions:
Add argument buffer resources to the set of resources that must be resident for the duration of the render or compute pass.
Ensure that argument buffer resources are in a format compatible with the required function operation, as specified by a
Call these methods before issuing any draw or dispatch calls that may access the specified resources.