Package jme3tools.shadercheck
Interface Validator
- All Known Implementing Classes:
- CgcValidator,- GpuAnalyzerValidator
public interface Validator
Interface for shader validator tools.
- 
Method SummaryModifier 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().
- 
Method Details- 
getNameString getName()Returns the name of the validation tool- Returns:
- the name
 
- 
isInstalledboolean isInstalled()Returns true if the tool is installed on the system, false otherwise.- Returns:
- true if installed, otherwise false
 
- 
getInstalledVersionString getInstalledVersion()- Returns:
- the tool version as a String, must return null if the tool is not installed.
 
- 
validateValidates 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.- Parameters:
- shader- The shader to validate
- results- The storage for the validation results
 
 
-