Page MenuHome

Cycles: Merge operator code cleanup
ClosedPublic

Authored by Andrii Symkin (pembem22) on Dec 2 2021, 9:32 PM.

Details

Summary

Use structured binding and for-each loop, remove reduntant type casts, use find_if instead of loop.

Diff Detail

Repository
rB Blender

Event Timeline

Andrii Symkin (pembem22) requested review of this revision.Dec 2 2021, 9:32 PM
Andrii Symkin (pembem22) created this revision.
Andrii Symkin (pembem22) edited the summary of this revision. (Show Details)Dec 2 2021, 9:32 PM
Andrii Symkin (pembem22) added a reviewer: Cycles.

Cycles: Support merging images rendered with adaptive sampling

This patch adds support for merging images rendered with adaptive sampling.

To do this, an int buffer, which stores sample count, is created for each render layer that will be in output image. Samples are loaded from input images using "Debug Sample Count" pass if it exists or from metadata otherwise. "Debug Sample Count" pass merging is handled separately.

Pushed wrong branch

This revision is now accepted and ready to land.Dec 9 2021, 8:52 PM