6#include <PhosphorRendering/phosphorrendering_export.h>
12#include <rhi/qshader.h>
13#include <rhi/qshaderbaker.h>
57 static QString
loadAndExpand(
const QString& path,
const QStringList& includePaths, QString* outError =
nullptr,
58 QStringList* outIncludedPaths =
nullptr);
69 static const QList<QShaderBaker::GeneratedShader>&
bakeTargets();
Static utility for GLSL → SPIR-V compilation with include resolution and caching.
Definition ShaderCompiler.h:29
static const QList< QShaderBaker::GeneratedShader > & bakeTargets()
Bake target list: SPIR-V 1.0, GLSL 330, GLSL ES 300/310/320.
static QString loadAndExpand(const QString &path, const QStringList &includePaths, QString *outError=nullptr, QStringList *outIncludedPaths=nullptr)
Load a shader file and expand #include directives without compiling.
static Result compileFromFile(const QString &path, const QStringList &includePaths)
Load shader from file, expand #include directives, then compile.
static Result compile(const QByteArray &source, QShader::Stage stage)
Compile GLSL source to QShader (SPIR-V 1.0 + GLSL 330 + ES 300/310/320).
static void clearCache()
Clear the in-memory compilation cache (e.g.
Definition ShaderCompiler.h:15
Definition ShaderCompiler.h:32
QString error
Definition ShaderCompiler.h:35
QShader shader
Definition ShaderCompiler.h:33