ShaderCompilerRegistry

from panda3d.core import ShaderCompilerRegistry
class ShaderCompilerRegistry

Bases: DTOOL_SUPER_BASE

This class maintains the set of all known ShaderCompilers in the universe.

Inheritance diagram

Inheritance diagram of ShaderCompilerRegistry

__init__(*args, **kwargs)
compilers
getCompiler()

C++ Interface: get_compiler(ShaderCompilerRegistry self, int n)

/**
  • Returns the nth compiler registered.

*/

getCompilerForLanguage()

C++ Interface: get_compiler_for_language(const ShaderCompilerRegistry self, int language)

/**
  • Determines the compiler of the shader based on the indicated language

  • (without a leading dot). Returns NULL if the language matches no known

  • shader compilers.

*/

getCompilers()
getGlobalPtr()

C++ Interface: get_global_ptr()

/**
  • Returns a pointer to the global ShaderCompilerRegistry object.

*/

getNumCompilers()

C++ Interface: get_num_compilers(ShaderCompilerRegistry self)

/**
  • Returns the total number of compilers registered.

*/

get_compiler()

C++ Interface: get_compiler(ShaderCompilerRegistry self, int n)

/**
  • Returns the nth compiler registered.

*/

get_compiler_for_language()

C++ Interface: get_compiler_for_language(const ShaderCompilerRegistry self, int language)

/**
  • Determines the compiler of the shader based on the indicated language

  • (without a leading dot). Returns NULL if the language matches no known

  • shader compilers.

*/

get_compilers()
get_global_ptr()

C++ Interface: get_global_ptr()

/**
  • Returns a pointer to the global ShaderCompilerRegistry object.

*/

get_num_compilers()

C++ Interface: get_num_compilers(ShaderCompilerRegistry self)

/**
  • Returns the total number of compilers registered.

*/

write()

C++ Interface: write(ShaderCompilerRegistry self, ostream out, int indent_level)

/**
  • Writes a list of supported shader compilers to the indicated output stream,

  • one per line.

*/