ShaderCompilerRegistry¶
from acron.core import ShaderCompilerRegistry
- class ShaderCompilerRegistry¶
Bases:
This class maintains the set of all known
ShaderCompilersin the universe.Inheritance diagram
digraph inheritancec5c5140189 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ShaderCompilerRegistry" [URL="acron.core.ShaderCompilerRegistry.html#acron.core.ShaderCompilerRegistry",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ShaderCompilerRegistry" [arrowsize=0.75,style=""]; }- __init__()¶
- property compilers Sequence[ShaderCompiler]¶
Returns the nth compiler registered.
- get_compiler()¶
Returns the nth compiler registered.
- get_compiler_for_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.
- static get_global_ptr()¶
Returns a pointer to the global
ShaderCompilerRegistryobject.
- get_num_compilers()¶
Returns the total number of compilers registered.
- write()¶
Writes a list of supported shader compilers to the indicated output stream, one per line.