summaryrefslogtreecommitdiff
path: root/src/plasma-node.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-12-29 17:14:38 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-12-29 17:14:38 -0800
commit4cde73239ee3a7cfa4a83a3f9d8a20effdb115ed (patch)
treedcf7ea64487fa40ec08c984abd729f597300e857 /src/plasma-node.h
parent79a1c4c1295328cc59e9b8643d2125f38fb11038 (diff)
plasma-node,shader-node: break out maga plasma shaderrev4
Performing the maga branch in the shader slows things down considerably. This commit gets rid of the in-shader branch by splitting the plasma fragment shader into maga and non-maga variants. This required adding shader vector support to shader-node so multiple shaders could be supplied, with a selector index pointer used to pick which is used by the render function.
Diffstat (limited to 'src/plasma-node.h')
-rw-r--r--src/plasma-node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plasma-node.h b/src/plasma-node.h
index 8db8664..6094207 100644
--- a/src/plasma-node.h
+++ b/src/plasma-node.h
@@ -21,6 +21,6 @@ typedef struct m4f_t m4f_t;
typedef struct stage_t stage_t;
typedef struct stage_conf_t stage_conf_t;
-stage_t * plasma_node_new(const stage_conf_t *conf, m4f_t *projection_x, float *gloom, int *maga);
+stage_t * plasma_node_new(const stage_conf_t *conf, m4f_t *projection_x, float *gloom, unsigned *maga);
#endif
© All Rights Reserved