Interface ShaderManager


public interface ShaderManager
Shader manager
  • Field Details

  • Method Details

    • addConstant

      void addConstant(@NotNull @NotNull String key, @NotNull @NotNull String value)
      Defines constant (#Define)
      Parameters:
      key - name
      value - value
    • addTagSupplier

      void addTagSupplier(@NotNull @NotNull ShaderManager.ShaderType type, @NotNull ShaderManager.ShaderTagSupplier supplier)
      Adds shader tag to some shader file. Default: #GenerateOtherMainMethod with an empty list in all files.
      Parameters:
      type - type of shader
      supplier - tag function
    • newTag

      @NotNull static @NotNull ShaderManager.ShaderTag newTag()
      Creates new shader tag
      Returns:
      new tag