diff options
author | Jeroen Bakker <jbakker> | 2021-01-05 16:59:45 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-01-05 17:03:05 +0300 |
commit | 1f41bdc6f37fd091bb5649436f68335b10ade51f (patch) | |
tree | 699848cf8bff58bdf0e6d6b3cba54aa0d6a5e717 /source/blender/draw/intern/draw_manager.c | |
parent | 7cd6f667e33e60f3d53e465023bb75f90f499b07 (diff) |
Eevee Cryptomatte: Store hashes in render result meta data
Stores cryptomatte hashes as meta data to the render result. Compositors could
use this for lookup on names in stead of hashes.
Differential Revision: https://developer.blender.org/D9553
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index db701c384bd..1115d819659 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -1911,6 +1911,11 @@ void DRW_render_to_image(RenderEngine *engine, struct Depsgraph *depsgraph) RE_engine_end_result(engine, render_result, false, false, false); + if (engine_type->draw_engine->store_metadata) { + RenderResult *final_render_result = RE_engine_get_result(engine); + engine_type->draw_engine->store_metadata(data, final_render_result); + } + /* Force cache to reset. */ drw_viewport_cache_resize(); |