Encodes a barrier so that data written to memory by commands encoded before the barrier is available to commands encoded after the barrier.
- macOS 10.14+
- Mac Catalyst 13.0+
The kinds of resources that must be synchronized by the barrier.
The render stage when resource writes must be barriered. Data written before or during this stage are affected by the barrier.
The render stage when resource reads must be barriered. Data read during or after this stage is barriered.