o3de / o3de-atom-sampleviewer

Atom sample viewer project for the Open 3D Engine
https://o3de.org
Other
32 stars 37 forks source link

Added `RPI/Subpass` ASV Sample. #684

Closed galibzon closed 4 months ago

galibzon commented 4 months ago

This new Sample demonstrates how to use Vulkan subpasses with RPI Pass assets.

There are two Render Pipelines that are identical in terms of expected output, but they work diffrently to achieve the same outcome.

The first (default) pipeline is made of Two Subpasses, Forward followed by SkyBox. AtomSampleViewer/Passes/SubpassExample/TwoSubpasses/TwoSubpassesPipeline.pass.

The second pipeline is made of Two Passes, Forward followed by SkyBox. AtomSampleViewer/Passes/SubpassExample/TwoPasses/TwoPassesPipeline.pass.

The user can switch between those two pipelines by using the Keys '1' or '2'.

Here are some RenderDoc captures of both pipelines from PC:

Two Subpasses On PC

TwoSubpasses

Two Passes On PC

TwoPasses

Two Subpasses On Google Pixel 7 Pro

TwoSubpassesPixel7pro

Two Passes on Google Pixel 7 Pro

TwoPassesPixel7Pro