Class CgcValidator

All Implemented Interfaces:

public class CgcValidator extends Object implements Validator
  • Constructor Details

    • CgcValidator

      public CgcValidator()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Validator
      Returns the name of the validation tool
      Specified by:
      getName in interface Validator
      the name
    • isInstalled

      public boolean isInstalled()
      Description copied from interface: Validator
      Returns true if the tool is installed on the system, false otherwise.
      Specified by:
      isInstalled in interface Validator
      true if installed, otherwise false
    • getInstalledVersion

      public String getInstalledVersion()
      Specified by:
      getInstalledVersion in interface Validator
      the tool version as a String, must return null if the tool is not installed.
    • validate

      public void validate(Shader shader, StringBuilder results)
      Description copied from interface: Validator
      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.
      Specified by:
      validate in interface Validator
      shader - The shader to validate
      results - The storage for the validation results