RetroArch
Functions | Variables
test_shaders Namespace Reference

Functions

def remove_file (path)
 
def create_temporary (suff='')
 
def parse_stats (stats)
 
def get_shader_type (shader)
 
def get_shader_stats (shader)
 
def print_msl_compiler_version ()
 
def validate_shader_msl (shader, opt)
 
def cross_compile_msl (shader, spirv, opt)
 
def shader_model_hlsl (shader)
 
def shader_to_win_path (shader)
 
def validate_shader_hlsl (shader)
 
def shader_to_sm (shader)
 
def cross_compile_hlsl (shader, spirv, opt)
 
def cross_compile_reflect (shader, spirv, opt)
 
def validate_shader (shader, vulkan)
 
def cross_compile (shader, vulkan, spirv, invalid_spirv, eliminate, is_legacy, flatten_ubo, sso, flatten_dim, opt)
 
def make_unix_newline (buf)
 
def md5_for_file (path)
 
def make_reference_dir (path)
 
def reference_path (directory, relpath, opt)
 
def json_ordered (obj)
 
def json_compare (json_a, json_b)
 
def regression_check_reflect (shader, json_file, update, keep, opt)
 
def regression_check (shader, glsl, update, keep, opt)
 
def shader_is_vulkan (shader)
 
def shader_is_desktop (shader)
 
def shader_is_eliminate_dead_variables (shader)
 
def shader_is_spirv (shader)
 
def shader_is_invalid_spirv (shader)
 
def shader_is_legacy (shader)
 
def shader_is_flatten_ubo (shader)
 
def shader_is_sso (shader)
 
def shader_is_flatten_dimensions (shader)
 
def shader_is_noopt (shader)
 
def test_shader (stats, shader, update, keep, opt)
 
def test_shader_msl (stats, shader, update, keep, opt)
 
def test_shader_hlsl (stats, shader, update, keep, opt)
 
def test_shader_reflect (stats, shader, update, keep, opt)
 
def test_shader_file (relpath, stats, shader_dir, update, keep, opt, backend)
 
def test_shaders_helper (stats)
 
def test_shaders ()
 
def main ()
 

Variables

string backend = 'glsl'
 
dictionary args = {}
 
bool ignore_fxc = False
 

Function Documentation

◆ create_temporary()

def test_shaders.create_temporary (   suff = '')
Here is the caller graph for this function:

◆ cross_compile()

def test_shaders.cross_compile (   shader,
  vulkan,
  spirv,
  invalid_spirv,
  eliminate,
  is_legacy,
  flatten_ubo,
  sso,
  flatten_dim,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cross_compile_hlsl()

def test_shaders.cross_compile_hlsl (   shader,
  spirv,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cross_compile_msl()

def test_shaders.cross_compile_msl (   shader,
  spirv,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cross_compile_reflect()

def test_shaders.cross_compile_reflect (   shader,
  spirv,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_shader_stats()

def test_shaders.get_shader_stats (   shader)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_shader_type()

def test_shaders.get_shader_type (   shader)
Here is the caller graph for this function:

◆ json_compare()

def test_shaders.json_compare (   json_a,
  json_b 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ json_ordered()

def test_shaders.json_ordered (   obj)
Here is the caller graph for this function:

◆ main()

def test_shaders.main ( void  )
Here is the call graph for this function:

◆ make_reference_dir()

def test_shaders.make_reference_dir (   path)
Here is the caller graph for this function:

◆ make_unix_newline()

def test_shaders.make_unix_newline (   buf)
Here is the caller graph for this function:

◆ md5_for_file()

def test_shaders.md5_for_file (   path)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_stats()

def test_shaders.parse_stats (   stats)
Here is the caller graph for this function:

◆ print_msl_compiler_version()

def test_shaders.print_msl_compiler_version ( )
Here is the caller graph for this function:

◆ reference_path()

def test_shaders.reference_path (   directory,
  relpath,
  opt 
)
Here is the caller graph for this function:

◆ regression_check()

def test_shaders.regression_check (   shader,
  glsl,
  update,
  keep,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ regression_check_reflect()

def test_shaders.regression_check_reflect (   shader,
  json_file,
  update,
  keep,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_file()

def test_shaders.remove_file (   path)
Here is the caller graph for this function:

◆ shader_is_desktop()

def test_shaders.shader_is_desktop (   shader)
Here is the caller graph for this function:

◆ shader_is_eliminate_dead_variables()

def test_shaders.shader_is_eliminate_dead_variables (   shader)
Here is the caller graph for this function:

◆ shader_is_flatten_dimensions()

def test_shaders.shader_is_flatten_dimensions (   shader)
Here is the caller graph for this function:

◆ shader_is_flatten_ubo()

def test_shaders.shader_is_flatten_ubo (   shader)
Here is the caller graph for this function:

◆ shader_is_invalid_spirv()

def test_shaders.shader_is_invalid_spirv (   shader)
Here is the caller graph for this function:

◆ shader_is_legacy()

def test_shaders.shader_is_legacy (   shader)
Here is the caller graph for this function:

◆ shader_is_noopt()

def test_shaders.shader_is_noopt (   shader)
Here is the caller graph for this function:

◆ shader_is_spirv()

def test_shaders.shader_is_spirv (   shader)
Here is the caller graph for this function:

◆ shader_is_sso()

def test_shaders.shader_is_sso (   shader)
Here is the caller graph for this function:

◆ shader_is_vulkan()

def test_shaders.shader_is_vulkan (   shader)
Here is the caller graph for this function:

◆ shader_model_hlsl()

def test_shaders.shader_model_hlsl (   shader)
Here is the caller graph for this function:

◆ shader_to_sm()

def test_shaders.shader_to_sm (   shader)
Here is the caller graph for this function:

◆ shader_to_win_path()

def test_shaders.shader_to_win_path (   shader)
Here is the caller graph for this function:

◆ test_shader()

def test_shaders.test_shader (   stats,
  shader,
  update,
  keep,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_shader_file()

def test_shaders.test_shader_file (   relpath,
  stats,
  shader_dir,
  update,
  keep,
  opt,
  backend 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_shader_hlsl()

def test_shaders.test_shader_hlsl (   stats,
  shader,
  update,
  keep,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_shader_msl()

def test_shaders.test_shader_msl (   stats,
  shader,
  update,
  keep,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_shader_reflect()

def test_shaders.test_shader_reflect (   stats,
  shader,
  update,
  keep,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_shaders()

def test_shaders.test_shaders ( )
Here is the call graph for this function:

◆ test_shaders_helper()

def test_shaders.test_shaders_helper (   stats)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate_shader()

def test_shaders.validate_shader (   shader,
  vulkan 
)
Here is the caller graph for this function:

◆ validate_shader_hlsl()

def test_shaders.validate_shader_hlsl (   shader)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate_shader_msl()

def test_shaders.validate_shader_msl (   shader,
  opt 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ args

dictionary test_shaders.args = {}

◆ backend

string test_shaders.backend = 'glsl'

◆ ignore_fxc

bool test_shaders.ignore_fxc = False