CompilerOptions¶
from acron.core import CompilerOptions
- class CompilerOptions¶
Bases:
Specifies parameters that may be passed to the shader compiler.
Inheritance diagram
digraph inheritance50a2f8d521 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "CompilerOptions" [URL="acron.core.CompilerOptions.html#acron.core.CompilerOptions",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" -> "CompilerOptions" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; }- __init__()¶
- property debug bool¶
Getter Setter
If enabled, the shader will be compiled with debugging support. This preserves source information and enables features such as debug printf and shader assertions. Disabled by default; see also the shader-debug config variable to enable this globally.
- define()¶
Sets a preprocessor definition.
- property entry_point string¶
- Getter
Returns the name of the entry point.
- Setter
Sets the name of the entry point. If this is set to an empty string, a language-specific default is used.
- property include_path DSearchPath¶
- Getter
Returns the path that includes are searched along.
Returns the path that includes are searched along.
- Setter
Sets the search path that includes are searched along.
- property optimize Optimize¶
- Getter
Returns the current optimization setting.
- Setter
Sets the focus of optimization: NONE (which does not perform optimization), PERFORMANCE (the default) or SIZE.
- output()¶
- property suppress_log bool¶
Getter Setter
If enabled, does not write compiler warnings/errors to the standard notify stream.
- write_defines()¶
Writes the definitions to the given output stream.