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