Warn when a sub-pass is scheduled or declares attachments


A pass referenced through a SubRenderPass command renders into its
parent's render target: it never produces output of its own, and any
attachment commands it declares are ignored. Both cases previously
failed silently, which made a scene that references a sub-pass from a
RenderOutputProvider render black with no explanation.
With this change we now issue a warning if a SubRenderPass tries to
produce its own render target.

Task-number: QTBUG-148554
Pick-to: 6.12 6.11
Change-Id: I48161d83ec422e5ac3aeb8b6dbfb822fd8c01d72
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commit3c7e5aab41de3729cfc1f31af5635f7f7c084556
parent4863c6682e286ae4ece77ee779238753d80b43b8
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeWed, 9 Sep 2026 06:02:47 +0000