RetroArch
|
Functions | |
def | log (*arg) |
def | keep_line_if (func, lines) |
def | remove_comments (source_lines) |
def | defines_var (line) |
def | replace_by_table (source, table) |
def | replace_global_in (source) |
def | replace_global_vertex (source) |
def | translate_varyings (varyings, source, direction) |
def | no_uniform (elem) |
def | destructify_varyings (source, direction) |
def | translate (cg, translations) |
def | translate_varying (cg) |
def | translate_texture_size (cg) |
def | replace_varyings (source) |
def | fix_samplers (log_prefix, ref_index, source) |
def | hack_source_vertex (source) |
def | replace_global_fragment (source) |
def | translate_texture (cg) |
def | hack_source_fragment (source) |
def | validate_shader (source, target) |
def | preprocess_vertex (source_data) |
def | convert (source, dest) |
def | convert_cgp (source, dest) |
def | path_ext (path) |
def | convert_path (source, source_dir, dest_dir, conv) |
def | main () |
Variables | |
bool | batch_mode = False |
Python 3 script which converts simple RetroArch Cg shaders to modern GLSL (ES) format. Author: Hans-Kristian Arntzen (Themaister) License: Public domain
def cg2glsl.convert | ( | source, | |
dest | |||
) |
def cg2glsl.convert_cgp | ( | source, | |
dest | |||
) |
def cg2glsl.convert_path | ( | source, | |
source_dir, | |||
dest_dir, | |||
conv | |||
) |
def cg2glsl.defines_var | ( | line | ) |
def cg2glsl.destructify_varyings | ( | source, | |
direction | |||
) |
def cg2glsl.fix_samplers | ( | log_prefix, | |
ref_index, | |||
source | |||
) |
def cg2glsl.hack_source_fragment | ( | source | ) |
def cg2glsl.hack_source_vertex | ( | source | ) |
def cg2glsl.keep_line_if | ( | func, | |
lines | |||
) |
def cg2glsl.log | ( | * | arg | ) |
def cg2glsl.main | ( | void | ) |
def cg2glsl.no_uniform | ( | elem | ) |
def cg2glsl.path_ext | ( | path | ) |
def cg2glsl.preprocess_vertex | ( | source_data | ) |
def cg2glsl.remove_comments | ( | source_lines | ) |
def cg2glsl.replace_by_table | ( | source, | |
table | |||
) |
def cg2glsl.replace_global_fragment | ( | source | ) |
def cg2glsl.replace_global_in | ( | source | ) |
def cg2glsl.replace_global_vertex | ( | source | ) |
def cg2glsl.replace_varyings | ( | source | ) |
def cg2glsl.translate | ( | cg, | |
translations | |||
) |
def cg2glsl.translate_texture | ( | cg | ) |
def cg2glsl.translate_texture_size | ( | cg | ) |
def cg2glsl.translate_varying | ( | cg | ) |
def cg2glsl.translate_varyings | ( | varyings, | |
source, | |||
direction | |||
) |
def cg2glsl.validate_shader | ( | source, | |
target | |||
) |
bool cg2glsl.batch_mode = False |