@Override
    public void validate(Shader shader, StringBuilder results) {
        for (ShaderSource source : shader.getSources()){
            results.append("Checking: ").append(source.getName());
            switch (source.getType()){
                case Fragment:
                    executeAnalyzer(source.getSource(), source.getLanguage(), source.getDefines(), "HD5770", results);
                    break;
                case Vertex:
                    executeAnalyzer(source.getSource(), source.getLanguage(), source.getDefines(), "HD5770", results);
                    break;
            }
        }
    }
Shader validator implementation for AMD's GPUShaderAnalyser.

@author Kirill Vainer
jme3-core/src/tools/java/jme3tools/shadercheck/GpuAnalyzerValidator.java