Interface VeilAddShaderPreProcessorsEvent.Registry

All Known Implementing Classes:
ShaderProcessorList
Enclosing interface:
VeilAddShaderPreProcessorsEvent

public static interface VeilAddShaderPreProcessorsEvent.Registry
Registers shader pre-processors.
  • Method Details

    • addPreprocessorFirst

      void addPreprocessorFirst(ShaderPreProcessor processor, boolean modifyImports)
      Adds the specified pre-processor to the start of the stack.
      Parameters:
      processor - The processor to add
      modifyImports - Whether the processor will also be run on imports
    • addPreprocessorFirst

      default void addPreprocessorFirst(ShaderPreProcessor processor)
      Adds the specified pre-processor to the start of the stack.
      Parameters:
      processor - The processor to add
    • addPreprocessor

      void addPreprocessor(ShaderPreProcessor processor, boolean modifyImports)
      Adds the specified pre-processor to the end of the stack.
      Parameters:
      processor - The processor to add
      modifyImports - Whether the processor will also be run on imports
    • addPreprocessor

      default void addPreprocessor(ShaderPreProcessor processor)
      Adds the specified pre-processor to the end of the stack.
      Parameters:
      processor - The processor to add