Interface Validator

All Known Implementing Classes:
CgcValidator, GpuAnalyzerValidator

public interface Validator
Interface for shader validator tools.
  • Method Details

    • getName

      String getName()
      Returns the name of the validation tool
      Returns:
      the name
    • isInstalled

      boolean isInstalled()
      Returns true if the tool is installed on the system, false otherwise.
      Returns:
      true if installed, otherwise false
    • getInstalledVersion

      String getInstalledVersion()
      Returns:
      the tool version as a String, must return null if the tool is not installed.
    • validate

      void validate(Shader shader, StringBuilder results)
      Validates the given shader to make sure it follows all requirements of the shader language specified as Shader.ShaderSource.getLanguage(). The results of the validation will be written into the results argument.
      Parameters:
      shader - The shader to validate
      results - The storage for the validation results