4#ifndef QSHADERDESCRIPTION_P_H
5#define QSHADERDESCRIPTION_P_H
18#include <rhi/qshaderdescription.h>
19#include <QtCore/QList>
20#include <QtCore/QAtomicInt>
21#include <QtCore/QJsonDocument>
27 QShaderDescriptionPrivate()
32 QShaderDescriptionPrivate(
const QShaderDescriptionPrivate &other)
35 outVars(other.outVars),
36 uniformBlocks(other.uniformBlocks),
37 pushConstantBlocks(other.pushConstantBlocks),
38 storageBlocks(other.storageBlocks),
39 combinedImageSamplers(other.combinedImageSamplers),
40 separateImages(other.separateImages),
41 separateSamplers(other.separateSamplers),
42 storageImages(other.storageImages),
43 inBuiltins(other.inBuiltins),
44 outBuiltins(other.outBuiltins),
45 localSize(other.localSize),
46 tessOutVertCount(other.tessOutVertCount),
47 tessMode(other.tessMode),
48 tessWind(other.tessWind),
49 tessPart(other.tessPart)
53 static QShaderDescriptionPrivate *get(QShaderDescription *desc) {
return desc->d; }
54 static const QShaderDescriptionPrivate *get(
const QShaderDescription *desc) {
return desc->d; }
56 QJsonDocument makeDoc();
Combined button and popup list for selecting options.
QDebug operator<<(QDebug dbg, const QFileInfo &fi)
static QLatin1StringView tessModeStr(QShaderDescription::TessellationMode mode)
static QLatin1StringView tessPartStr(QShaderDescription::TessellationPartitioning p)
static void serializeBlockMemberVar(QDataStream *stream, const QShaderDescription::BlockVariable &v)
static QLatin1StringView builtinTypeStr(QShaderDescription::BuiltinType t)
static QJsonObject inOutObject(const QShaderDescription::InOutVariable &v)
static void serializeBuiltinVar(QDataStream *stream, const QShaderDescription::BuiltinVariable &v, int version)
static QJsonObject builtinObject(const QShaderDescription::BuiltinVariable &v)
static void serializeDecorations(QDataStream *stream, const QShaderDescription::InOutVariable &v, int version)
static QLatin1StringView imageFormatStr(QShaderDescription::ImageFormat f)
static QJsonObject blockMemberObject(const QShaderDescription::BlockVariable &v)
static void addDeco(QJsonObject *obj, const QShaderDescription::InOutVariable &v)
static QLatin1StringView tessWindStr(QShaderDescription::TessellationWindingOrder w)
static QLatin1StringView typeStr(QShaderDescription::VariableType t)
QList< QShaderDescription::InOutVariable > separateImages
QList< QShaderDescription::InOutVariable > inVars
std::array< uint, 3 > localSize
QList< QShaderDescription::StorageBlock > storageBlocks
void loadFromStream(QDataStream *stream, int version)
QShaderDescription::TessellationMode tessMode
QList< QShaderDescription::BuiltinVariable > inBuiltins
void writeToStream(QDataStream *stream, int version)
QList< QShaderDescription::InOutVariable > combinedImageSamplers
QList< QShaderDescription::BuiltinVariable > outBuiltins
QList< QShaderDescription::InOutVariable > outVars
QList< QShaderDescription::InOutVariable > storageImages
QShaderDescription::TessellationPartitioning tessPart
QList< QShaderDescription::UniformBlock > uniformBlocks
QList< QShaderDescription::InOutVariable > separateSamplers
QList< QShaderDescription::PushConstantBlock > pushConstantBlocks
QShaderDescription::TessellationWindingOrder tessWind