mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
added support for 'pre_' variations
This commit is contained in:
parent
449f7d9374
commit
f14d56558c
@ -37,10 +37,21 @@ void apply_xf{{xfid}}(float *ix, float *iy, float *icolor, mwc_st *rctx) {
|
||||
oy = 0;
|
||||
|
||||
{{for v in xform.vars}}
|
||||
{{if variations.var_nos[v].startswith('pre_')}}
|
||||
if (1) {
|
||||
float w = {{px.get('xf.var[%d]' % v)}};
|
||||
{{variations.var_code[variations.var_nos[v]].substitute(locals())}}
|
||||
}
|
||||
{{endif}}
|
||||
{{endfor}}
|
||||
|
||||
{{for v in xform.vars}}
|
||||
{{if not variations.var_nos[v].startswith('pre_')}}
|
||||
if (1) {
|
||||
float w = {{px.get('xf.var[%d]' % v)}};
|
||||
{{variations.var_code[variations.var_nos[v]].substitute(locals())}}
|
||||
}
|
||||
{{endif}}
|
||||
{{endfor}}
|
||||
|
||||
*ix = ox;
|
||||
|
Loading…
Reference in New Issue
Block a user