o3de-atom-sampleviewer
o3de-atom-sampleviewer copied to clipboard
Multi-GPU RHI & RPI samples
This PR introduces sample multi-GPU sample implementation for both RHI & RPI, both are based on the TriangleExampleComponent
, which simply renders a triangle (the RHI sample also animates the position of the triangle).
Both cases split the screen in the middle, render the left half on device 0 and the right half on device 1. The right half is then copied over from device 1 to device 0 (either via a copy-ScopeProducer in the RHI
sample or using the CopyPass
in case of RPI
) and composited there for the final output.
This PR also includes some commits that are already present in development
, but not yet in multi-device-resources
and will be removed in a rebase.
Also, some fixes are included as well, the full list of commits is
- https://github.com/o3de/o3de-atom-sampleviewer/commit/234d1c289610ce14c6f70d45791ef7c0d7e91c74 (rebase remove)
- https://github.com/o3de/o3de-atom-sampleviewer/commit/193f75cff9e8407ecd487c4d62e5375d39ea29fb (rebase remove)
- Fixes for the build (mostly release build)
- RHI Sample
- RPI Sample
- Fixes for
IndirectRenderingExample
- Rewrite deviceMasks from
DefaultDevice
toAllDevices
to work correctly