RetroArch
|
#include <stdlib.h>
#include <string.h>
#include <libretro.h>
#include <compat/posix_string.h>
#include <compat/msvc.h>
#include <compat/strl.h>
#include <file/file_path.h>
#include <rhash.h>
#include <string/stdstring.h>
#include <streams/interface_stream.h>
#include <streams/file_stream.h>
#include <lists/string_list.h>
#include "../verbosity.h"
#include "../configuration.h"
#include "../frontend/frontend_driver.h"
#include "../command.h"
#include "video_driver.h"
#include "video_shader_parse.h"
Variables | |
static path_change_data_t * | file_change_data = NULL |
|
static |
import_semantic_to_string: : Import semantic type from state tracker.
Translates import semantic to human-readable string identifier.
Returns: human-readable string identifier of import semantic.
|
static |
|
static |
|
static |
|
static |
shader_write_variable: : Preset file to read from. : State tracker uniform info handle.
Writes variable to shader preset file.
enum rarch_shader_type video_shader_get_type_from_ext | ( | const char * | ext, |
bool * | is_preset | ||
) |
bool video_shader_is_supported | ( | enum rarch_shader_type | type | ) |
|
static |
video_shader_parse_find_parameter: : Shader parameter handle. : Number of shader params in . : Identifier to search for.
Finds a shader parameter with identifier in ..
Returns: handle to shader parameter if successful, otherwise NULL.
|
static |
video_shader_parse_imports: : Preset file to read from. : Shader passes handle.
Resolves import parameters belonging to shaders.
Returns: true (1) if successful, otherwise false (0).
|
static |
video_shader_parse_pass: : Preset file to read from. : Shader passes handle. : Index of shader pass.
Parses shader pass from preset file.
Returns: true (1) if successful, otherwise false (0).
|
static |
video_shader_parse_textures: : Preset file to read from. : Shader pass handle.
Parses shader textures.
Returns: true (1) if successful, otherwise false (0).
enum rarch_shader_type video_shader_parse_type | ( | const char * | path, |
enum rarch_shader_type | fallback | ||
) |
video_shader_parse_type: : Shader path. : Fallback shader type in case no type could be found.
Parses type of shader.
Returns: value of shader type on success, otherwise will return user-supplied value.
bool video_shader_read_conf_cgp | ( | config_file_t * | conf, |
struct video_shader * | shader | ||
) |
video_shader_read_conf_cgp: : Preset file to read from. : Shader passes handle.
Loads preset file and all associated state (passes, textures, imports, etc).
Returns: true (1) if successful, otherwise false (0).
bool video_shader_resolve_current_parameters | ( | config_file_t * | conf, |
struct video_shader * | shader | ||
) |
video_shader_set_current_parameters: : Preset file to read from. : Shader passes handle.
Reads the current value for all parameters from config file.
Returns: true (1) if successful, otherwise false (0).
bool video_shader_resolve_parameters | ( | config_file_t * | conf, |
struct video_shader * | shader | ||
) |
video_shader_resolve_parameters: : Preset file to read from. : Shader passes handle.
Resolves all shader parameters belonging to shaders.
Returns: true (1) if successful, otherwise false (0).
void video_shader_resolve_relative | ( | struct video_shader * | shader, |
const char * | ref_path | ||
) |
video_shader_resolve_relative: : Shader pass handle. : Relative shader path.
Resolves relative shader path () into absolute shader paths.
void video_shader_write_conf_cgp | ( | config_file_t * | conf, |
struct video_shader * | shader | ||
) |
video_shader_write_conf_cgp: : Preset file to read from. : Shader passes handle.
Saves preset and all associated state (passes, textures, imports, etc) to disk.
|
static |
wrap_mode_to_str: : Wrap type.
Translates wrap mode to human-readable string identifier.
Returns: human-readable string identifier of wrap mode.
|
static |
wrap_str_to_mode: : Wrap type in human-readable string format.
Translates wrap mode from human-readable string to enum mode value.
Returns: enum mode value of wrap type.
|
static |