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
      the name
    • isInstalled

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

      String getInstalledVersion()
      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.
      shader - The shader to validate
      results - The storage for the validation results