Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
ShaderPackPaths.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <PhosphorShaders/phosphorshaders_export.h>
7
9
10#include <QDir>
11#include <QString>
12
13QT_BEGIN_NAMESPACE
14class QLoggingCategory;
15QT_END_NAMESPACE
16
17namespace PhosphorShaders {
18
50PHOSPHORSHADERS_EXPORT QString resolveWithinPack(const QDir& packDir, const QString& declaredName,
52 const QLoggingCategory& log);
53
54} // namespace PhosphorShaders
AbsolutePathPolicy
What to do with a declared path that is already absolute.
Definition PackPathGuard.h:16
Definition ShaderProfile.h:21
PHOSPHORSHADERS_EXPORT QString resolveWithinPack(const QDir &packDir, const QString &declaredName, PhosphorFsLoader::AbsolutePathPolicy policy, const QLoggingCategory &log)
Resolve a pack-declared relative path against packDir, refusing anything that escapes the pack.