(video_shader_parse.c) Tons of functions here should have been

made static, tons of log spam put behind DEBUG ifdefs
This commit is contained in:
twinaphex 2021-03-24 18:31:20 +01:00
parent 5aaf4150e2
commit d911dd6efc
2 changed files with 416 additions and 305 deletions

File diff suppressed because it is too large Load Diff

View File

@ -189,19 +189,6 @@ bool video_shader_resolve_parameters(struct video_shader *shader);
bool video_shader_load_current_parameter_values(config_file_t *conf, struct video_shader *shader); bool video_shader_load_current_parameter_values(config_file_t *conf, struct video_shader *shader);
/**
* video_shader_load_root_config_into_shader:
* @conf : Preset file to read from.
* @shader : Shader handle.
*
* Loads preset file and all associated state (passes,
* textures, imports, etc).
*
* Returns: true (1) if successful, otherwise false (0).
**/
bool video_shader_load_root_config_into_shader(config_file_t *conf, struct video_shader *shader);
/** /**
* video_shader_load_preset_into_shader: * video_shader_load_preset_into_shader:
* @path : Path to preset file, could be a Simple Preset (including a #reference) or Full Preset * @path : Path to preset file, could be a Simple Preset (including a #reference) or Full Preset
@ -214,20 +201,6 @@ bool video_shader_load_root_config_into_shader(config_file_t *conf, struct video
bool video_shader_load_preset_into_shader(const char *path, struct video_shader *shader); bool video_shader_load_preset_into_shader(const char *path, struct video_shader *shader);
/**
* video_shader_write_root_preset:
* @conf : Preset file to write to.
* @shader : Shader passes handle.
* @preset_path : Optional path to where the preset will be written.
*
* Writes preset and all associated state (passes,
* textures, imports, etc) into @conf.
* If @preset_path is not NULL, shader paths are saved
* relative to it.
**/
bool video_shader_write_root_preset(const struct video_shader *shader, const char *preset_path);
/** /**
* video_shader_write_preset: * video_shader_write_preset:
* @path : File to write to * @path : File to write to