test_shadercompilerregistry.py 556 B

1234567891011121314
  1. from panda3d import core
  2. def test_shadercompilerregistry_exists(registry):
  3. assert registry is not None
  4. #def test_shadercompilerregistry_glslpreproc_loaded(registry):
  5. # assert core.ShaderCompilerGlslPreProc in [type(i) for i in registry.compilers]
  6. # assert registry.get_compiler_for_language(core.Shader.SL_GLSL) is not None
  7. #def test_shadercompilerregistry_missing_lang(registry):
  8. # assert core.ShaderCompilerGlslPreProc in [type(i) for i in registry.compilers]
  9. # assert registry.get_compiler_for_language(core.Shader.SL_none) is None