Package jme3tools.shadercheck
Class CgcValidator
java.lang.Object
jme3tools.shadercheck.CgcValidator
- All Implemented Interfaces:
Validator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the validation toolbooleanReturns true if the tool is installed on the system, false otherwise.voidvalidate(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
-
CgcValidator
public CgcValidator()
-
-
Method Details
-
getName
Description copied from interface:ValidatorReturns the name of the validation tool -
isInstalled
public boolean isInstalled()Description copied from interface:ValidatorReturns true if the tool is installed on the system, false otherwise.- Specified by:
isInstalledin interfaceValidator- Returns:
- true if installed, otherwise false
-
getInstalledVersion
- Specified by:
getInstalledVersionin interfaceValidator- Returns:
- the tool version as a String, must return null if the tool is not installed.
-
validate
Description copied from interface:ValidatorValidates 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.
-