mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
shaders: track the pass for each parameter
This commit is contained in:
parent
4a86d29810
commit
560149857b
2 changed files with 5 additions and 2 deletions
|
@ -545,9 +545,11 @@ bool video_shader_resolve_parameters(config_file_t *conf,
|
|||
if (ret == 5)
|
||||
param->step = 0.1f * (param->maximum - param->minimum);
|
||||
|
||||
RARCH_LOG("Found #pragma parameter %s (%s) %f %f %f %f\n",
|
||||
param->pass = i;
|
||||
|
||||
RARCH_LOG("Found #pragma parameter %s (%s) %f %f %f %f in pass %d\n",
|
||||
param->desc, param->id, param->initial,
|
||||
param->minimum, param->maximum, param->step);
|
||||
param->minimum, param->maximum, param->step, param->pass);
|
||||
param->current = param->initial;
|
||||
|
||||
shader->num_parameters++;
|
||||
|
|
|
@ -105,6 +105,7 @@ struct video_shader_parameter
|
|||
float initial;
|
||||
float maximum;
|
||||
float step;
|
||||
int pass;
|
||||
};
|
||||
|
||||
struct video_shader_pass
|
||||
|
|
Loading…
Add table
Reference in a new issue