Build Output Nodes for Each Pass with "Prepare Render Elements"
To write passes such as depth, normals, and shadows (render elements) out as separate images, you need to build compositor nodes. "Prepare Render Elements" and "Refresh Nodes" build the output nodes for the selected passes all at once.
Starting scene demonstrated on Suzanne and a floor
Steps
In "Smart Render" tab > "Render Elements", turn on "Enable Render Elements".
First, click the "Beauty Only" button (this selects only 1 element, the normal color image).
Click "Prepare Render Elements".
Click "Refresh Nodes".
In the Compositor node editor, check the nodes that were built.
Set "Quick Set" to "Composite", click "Load Quick Set", and then click "Prepare Render Elements" and "Refresh Nodes" again.
Follow the changes on screen
BeforeThere are no compositor nodes yet.AfterAfter "Beauty Only" → "Prepare Render Elements" → "Refresh Nodes". Beauty is now connected from the view layer to the output node."Composite" LoadedAfter setting "Quick Set" to "Composite", clicking "Load Quick Set", and clicking "Prepare Render Elements" and "Refresh Nodes" again. Output links have been added, one for each pass.