diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-09-02 23:37:28 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-09-04 20:53:36 -0700 |
commit | 9170d08854796f8595c9f6cebe85827a71e86e19 (patch) | |
tree | 85fd5ed8783f78133a1e57a093f2a9f8f085baa8 /src/til_fb.h | |
parent | 952e4ac7ea69bb42e266516d78ed72ed68499d3f (diff) |
til,til_fb: introduce a noop_per_cpu fragmenter
This is intended to perhaps be of use for threaded rendering that
don't actually produce pixels during their render phase, but
still need n_cpus fragments to dispatch the parallel work keying
off the fragment.number.
Such a renderer might then put its pixels on-screen serially @
finish_frame(), or maybe the rendering functions will get a
return value to trigger multi-pass rendering on the same tick.
Diffstat (limited to 'src/til_fb.h')
-rw-r--r-- | src/til_fb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/til_fb.h b/src/til_fb.h index 7c6464e..d346bd7 100644 --- a/src/til_fb.h +++ b/src/til_fb.h @@ -59,6 +59,7 @@ void til_fb_halt(til_fb_t *fb); void * til_fb_context(til_fb_t *fb); int til_fb_flip(til_fb_t *fb); void til_fb_fragment_divide(til_fb_fragment_t *fragment, unsigned n_fragments, til_fb_fragment_t fragments[]); +int til_fb_fragment_noop_single(const til_fb_fragment_t *fragment, unsigned n_fragments, unsigned num, til_fb_fragment_t *res_fragment); int til_fb_fragment_slice_single(const til_fb_fragment_t *fragment, unsigned n_fragments, unsigned num, til_fb_fragment_t *res_fragment); int til_fb_fragment_tile_single(const til_fb_fragment_t *fragment, unsigned tile_size, unsigned num, til_fb_fragment_t *res_fragment); |