CompilerOptions

from panda3d.core import CompilerOptions
class CompilerOptions

Bases: DTOOL_SUPER_BASE

Specifies parameters that may be passed to the shader compiler.

Inheritance diagram

Inheritance diagram of CompilerOptions

class Optimize(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

NONE = 0
PERFORMANCE = 1
SIZE = 2
__init__(*args, **kwargs)
define()

C++ Interface: define(const CompilerOptions self, str key, str value)

/**
  • Sets a preprocessor definition.

*/

defines
optimize
output()

C++ Interface: output(CompilerOptions self, ostream out)

/**

*/

suppress_log
undef()

C++ Interface: undef(const CompilerOptions self, str key)

/**
  • Removes a preprocessor definition previously set with define().

*/

writeDefines()

C++ Interface: write_defines(CompilerOptions self, ostream out)

/**
  • Writes the definitions to the given output stream.

*/

write_defines()

C++ Interface: write_defines(CompilerOptions self, ostream out)

/**
  • Writes the definitions to the given output stream.

*/