Interface ShaderPreProcessor.VeilContext

All Superinterfaces:
ShaderPreProcessor.Context
Enclosing interface:
ShaderPreProcessor

public static non-sealed interface ShaderPreProcessor.VeilContext extends ShaderPreProcessor.Context
Context for modifying source code and shader behavior.
  • Method Details

    • addUniformBinding

      void addUniformBinding(String name, int binding)
      Sets the uniform binding for a shader.
      Parameters:
      name - The name of the uniform
      binding - The binding to set it to
    • addDefinitionDependency

      void addDefinitionDependency(String name)
      Adds a new shader definition dependency
      Parameters:
      name - The name of the dependency to add
      Since:
      2.2.0
    • isDynamic

      boolean isDynamic()
      Returns:
      Whether the shader being compiled is dynamic
      Since:
      2.2.0
      See Also:
    • definition

      @Nullable @Nullable ProgramDefinition definition()
      Returns:
      The definition of the program this is being compiled for or null if the shader is standalone