Package jme3tools.shadercheck
Class GpuAnalyzerValidator
java.lang.Object
jme3tools.shadercheck.GpuAnalyzerValidator
- All Implemented Interfaces:
Validator
Shader validator implementation for AMD's GPUShaderAnalyser.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the validation toolboolean
Returns true if the tool is installed on the system, false otherwise.void
validate
(Shader shader, StringBuilder results) Validates the given shader to make sure it follows all requirements of the shader language specified asShader.ShaderSource.getLanguage()
.
-
Constructor Details
-
GpuAnalyzerValidator
public GpuAnalyzerValidator()
-
-
Method Details
-
getName
Description copied from interface:Validator
Returns the name of the validation tool -
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 interfaceValidator
- Returns:
- true if installed, otherwise false
-
getInstalledVersion
- Specified by:
getInstalledVersion
in interfaceValidator
- Returns:
- the tool version as a String, must return null if the tool is not installed.
-
validate
Description copied from interface:Validator
Validates the given shader to make sure it follows all requirements of the shader language specified asShader.ShaderSource.getLanguage()
. The results of the validation will be written into the results argument.
-