Make user subpasses explicit with SubRenderPass command


This commit updates the user render pass system based on API review
discussions to make subpasses explicit and provide better control over
render target behavior.

Added a new SubRenderPass command type that explicitly references other
render passes, replacing the previous implicit subpass mechanism. This
includes circular dependency detection and maximum nesting depth checks
to prevent infinite loops and excessive recursion. Command cloning now
includes retry logic to handle initialization order dependencies.

Replaced the boolean 'enableClearBuffers' property with a more flexible
'renderTargetFlags' property that uses QRhiTextureRenderTarget::Flags,
providing options like PreserveColorContents, PreserveDepthStencilContents,
and DoNotStoreDepthStencilContents for fine-grained control.

Added RenderableType::None to RenderablesFilter for container passes that
don't render objects themselves but only contain SubRenderPasses.

RenderPass objects are now added to dirtySecondPassResources
for correct initialization order.

Updated the userpasses manual test to demonstrate the new functionality.

Pick-to: 6.11
Change-Id: I6df748b1b7276b04183c272a9b096a67389156b1
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
commit37e0d9d7519659dbeb2c2c1d555e067b7547f237
parent4cbc1b5bd99d59b056ed7e58f162f39c4f981b75
authorAndy Nichols <andy.nichols@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeFri, 9 Jan 2026 13:14:02 +0100