aboutsummaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-03-25 22:25:32 +0000
committerrodri <rgl@antares-labs.eu>2024-03-25 22:25:32 +0000
commit0874435504c0816c0e5f11a2e852507626fe185e (patch)
treeac42078e476358ce3c0131e6a5da19fc4aebd9e8 /internal.h
parent764afe37e2438498bcace9de56b9618565b7cd34 (diff)
downloadlibgraphics-0874435504c0816c0e5f11a2e852507626fe185e.tar.gz
libgraphics-0874435504c0816c0e5f11a2e852507626fe185e.tar.bz2
libgraphics-0874435504c0816c0e5f11a2e852507626fe185e.zip
implement a (partially) concurrent pipeline.
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/internal.h b/internal.h
index 5fcd6e8..7f0d648 100644
--- a/internal.h
+++ b/internal.h
@@ -1,3 +1,10 @@
+typedef struct Jobqueue Jobqueue;
+
+struct Jobqueue
+{
+ Renderjob *hd, *tl;
+};
+
/* alloc */
void *emalloc(ulong);
void *erealloc(void*, ulong);
@@ -9,9 +16,6 @@ void rmfb(Framebuf*);
Framebufctl *mkfbctl(Rectangle);
void rmfbctl(Framebufctl*);
-/* render */
-void shade(Framebuf*, Scene*, Shader*);
-
/* vertex */
Vertex dupvertex(Vertex*);
void lerpvertex(Vertex*, Vertex*, Vertex*, double);