diff options
author | rodri <rgl@antares-labs.eu> | 2024-04-24 12:38:42 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-04-24 12:38:42 +0000 |
commit | cf3e0cb65c03955ef18624a50b9e33c3f6e8c6e5 (patch) | |
tree | b451aa62630c091fd0291190b4c1f2452fcdb5ef /internal.h | |
parent | c40a1238f24534b5f433308d92308e1481464141 (diff) | |
download | libgraphics-cf3e0cb65c03955ef18624a50b9e33c3f6e8c6e5.tar.gz libgraphics-cf3e0cb65c03955ef18624a50b9e33c3f6e8c6e5.tar.bz2 libgraphics-cf3e0cb65c03955ef18624a50b9e33c3f6e8c6e5.zip |
render: add rasterizer init params and per-proc identification.
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 24 |
1 files changed, 16 insertions, 8 deletions
@@ -1,21 +1,29 @@ typedef struct Tilerparam Tilerparam; +typedef struct Rasterparam Rasterparam; typedef struct Rastertask Rastertask; -struct Rastertask -{ - SUparams *params; - Rectangle wr; /* working rect */ - Primitive p; -}; - struct Tilerparam { + int id; Channel *paramsc; - Channel **tasksc; /* Channel*[nproc] */ + Channel **taskchans; /* Channel*[nproc] */ Rectangle *wr; /* Rectangle[nproc] */ ulong nproc; }; +struct Rasterparam +{ + int id; + Channel *taskc; +}; + +struct Rastertask +{ + SUparams *params; + Rectangle wr; /* working rect */ + Primitive p; +}; + /* alloc */ void *emalloc(ulong); void *erealloc(void*, ulong); |