Shader text editor widgets with line numbers and GLSL highlighting. More...
#include "syntax.hpp"#include <QCloseEvent>#include <QDialog>#include <QHash>#include <QKeyEvent>#include <QLabel>#include <QMouseEvent>#include <QPaintEvent>#include <QPlainTextEdit>#include <QStatusBar>#include <QString>#include <QStringList>#include <QSyntaxHighlighter>#include <QVector>#include <QWidget>Go to the source code of this file.
Classes | |
| class | CustomTextEdit |
| Plain-text editor with line numbers and code-editing helpers. More... | |
| class | LineNumberArea |
| struct | ShaderDiagnostic |
| struct | ShaderEditorUniform |
| class | TextEditor |
| Modal shader editor dialog used by ACMX2. More... | |
Enumerations | |
| enum class | ShaderDiagnosticSeverity { Error , Warning , Note } |
Functions | |
| QString | inject_safety_counters (const QString &glsl_source) |
| Add bounded iteration guards and preserve original GLSL diagnostic lines. | |
Shader text editor widgets with line numbers and GLSL highlighting.
Definition in file editor.hpp.
|
strong |
| Enumerator | |
|---|---|
| Error | |
| Warning | |
| Note | |
Definition at line 37 of file editor.hpp.
| QString inject_safety_counters | ( | const QString & | glsl_source | ) |
Add bounded iteration guards and preserve original GLSL diagnostic lines.
Definition at line 107 of file editor.cpp.
References anonymous_namespace{editor.cpp}::find_matching_glsl_delimiter(), inject_safety_counters(), anonymous_namespace{editor.cpp}::is_identifier_character(), anonymous_namespace{editor.cpp}::LOOP_SAFETY_LIMIT, anonymous_namespace{editor.cpp}::LOOP_SAFETY_MARKER, and anonymous_namespace{editor.cpp}::skip_glsl_trivia().
Referenced by inject_safety_counters(), TextEditor::requestPreview(), and MainWindow::startNextAcmxvkLiveCompile().