summaryrefslogtreecommitdiff
path: root/src/modules/sparkler/chunker.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2019-11-24 11:26:23 -0800
committerVito Caputo <vcaputo@pengaru.com>2019-11-24 11:26:23 -0800
commit8f774980b9222f39f9e74e8e3a694cad55753e2f (patch)
treec971c4b954428109ceee9351fc751dda467e0ff3 /src/modules/sparkler/chunker.h
parent53cc747fd2bdd774bc6f27f8aca5749c664b5cc7 (diff)
fb: add number to fb_fragment_t
This introduces a stricter coupling and requirement for modules supplying a fragmenter in their prepare_frame() to only receive fragments produced by *their* fragmenter at their render_fragment(). When modules don't explicitly perform any fragmenting they can't really make much use of this number as it will reflect an arbitrary fragmenting pass's perspective. But when modules do perform their own frame fragmenting, they can assume any fragment supplied to their render function will have been generated by it. This needs to be enforced a bit in the code. The current use case is montage using a fragmenter for tiling the montage in a threaded render. The fragment numbers map to the modules to be rendered in the tiles. As long as modules can assume their fragmenter will always be what produces their fragments, this is perfectly fine.
Diffstat (limited to 'src/modules/sparkler/chunker.h')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved