Class VersionedGLSLLexer

All Implemented Interfaces:
TokenSource

public abstract class VersionedGLSLLexer extends Lexer
Provides utility methods for the Lexer to only recognize tokens allowed in the current context, version, profile, extension setting, ES/non-ES mode, Vulkan/non-Vulkan mode. For more information, see https://github.com/KhronosGroup/glslang/blob/master/glslang/MachineIndependent/Scan.cpp} and https://github.com/KhronosGroup/glslang/blob/master/glslang/MachineIndependent/Versions.cpp.
  • Field Details

    • version

      public Version version
    • enableCustomDirective

      public boolean enableCustomDirective
    • enableIncludeDirective

      public boolean enableIncludeDirective
  • Constructor Details

    • VersionedGLSLLexer

      public VersionedGLSLLexer(CharStream input)
    • VersionedGLSLLexer

      public VersionedGLSLLexer()
  • Method Details

    • isAfter

      protected boolean isAfter(int atLeast)