#include <PhosphorShaders/phosphorshaders_export.h>
#include <QList>
#include <QString>
#include <QStringList>
Go to the source code of this file.
|
| struct | PhosphorShaders::EntryCandidate |
| | One candidate entry function the author may define, paired with the void main() the harness generates when that function is present and the source defines no main() of its own (T1.4). More...
|
| |
|
| PHOSPHORSHADERS_EXPORT bool | PhosphorShaders::definesMain (const QString &expandedSource) |
| | True if expandedSource defines void main() at top level.
|
| |
| PHOSPHORSHADERS_EXPORT bool | PhosphorShaders::definesFunction (const QString &expandedSource, const QString &functionName) |
| | True if expandedSource defines a function named functionName.
|
| |
| PHOSPHORSHADERS_EXPORT QString | PhosphorShaders::composeEntryPoint (const QString &expandedSource, const QList< EntryCandidate > &candidates) |
| | Compose the fragment entry point (T1.4).
|
| |
| PHOSPHORSHADERS_EXPORT QString | PhosphorShaders::assembleEntryPoint (const QString &raw, const QString &prologue, const QList< EntryCandidate > &candidates) |
| | Convenience wrapper for the full assembly: when candidates is empty or raw already defines main(), returns raw unchanged; otherwise returns composeEntryPoint(prologue + raw, candidates).
|
| |
| PHOSPHORSHADERS_EXPORT QString | PhosphorShaders::stripGlslComments (const QString &source) |
| | Strip GLSL line (//…) and block (/* … *‍/) comments from source, preserving newlines inside block comments so line numbers are unchanged.
|
| |