Class GpuAnalyzerValidator

java.lang.Object
jme3tools.shadercheck.GpuAnalyzerValidator
All Implemented Interfaces:
Validator

public class GpuAnalyzerValidator extends Object implements Validator
Shader validator implementation for AMD's GPUShaderAnalyser.
  • Constructor Details

    • GpuAnalyzerValidator

      public GpuAnalyzerValidator()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Validator
      Returns the name of the validation tool
      Specified by:
      getName in interface Validator
      Returns:
      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
      Returns:
      true if installed, otherwise false
    • getInstalledVersion

      public String getInstalledVersion()
      Specified by:
      getInstalledVersion in interface Validator
      Returns:
      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
      Parameters:
      shader - The shader to validate
      results - The storage for the validation results