Commit 5523e576 authored by Laszlo Agocs's avatar Laszlo Agocs
Browse files

Remove hiding flags from clang-based qdoc

parent 83680313
......@@ -205,9 +205,7 @@ struct Q_RHI_EXPORT QRhiShaderResourceBinding
TessellationControlStage = 1 << 2,
TessellationEvaluationStage = 1 << 3
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(StageFlags, StageFlag)
#endif
static QRhiShaderResourceBinding uniformBuffer(int binding_, StageFlags stage_, QRhiBuffer *buf_);
......@@ -391,9 +389,7 @@ public:
IndexBuffer = 1 << 1,
UniformBuffer = 1 << 2
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(UsageFlags, UsageFlag)
#endif
Type type() const { return m_type; }
void setType(Type t) { m_type = t; }
......@@ -430,9 +426,7 @@ public:
UsedAsTransferSource = 1 << 5, // will (also) be used as the source of a copy or readback
UsedWithGenerateMips = 1 << 6
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(Flags, Flag)
#endif
enum Format {
UnknownFormat,
......@@ -562,9 +556,7 @@ public:
enum Flag {
UsedWithSwapChainOnly = 1 << 0 // use implicit winsys buffers, don't create anything (GL)
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(Flags, Flag)
#endif
Type type() const { return m_type; }
void setType(Type t) { m_type = t; }
......@@ -631,9 +623,7 @@ public:
PreserveColorContents = 1 << 0,
PreserveDepthStencilContents = 1 << 1
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(Flags, Flag)
#endif
QRhiTextureRenderTargetDescription description() const { return m_desc; }
void setDescription(const QRhiTextureRenderTargetDescription &desc) { m_desc = desc; }
......@@ -679,9 +669,7 @@ public:
UsesStencilRef = 1 << 1,
UsesScissor = 1 << 2
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(Flags, Flag)
#endif
enum Topology {
Triangles,
......@@ -708,9 +696,7 @@ public:
B = 1 << 2,
A = 1 << 3
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(ColorMask, ColorMaskComponent)
#endif
enum BlendFactor {
Zero,
......@@ -875,9 +861,7 @@ public:
UsedAsTransferSource = 1 << 3, // will be read back
NoVSync = 1 << 4 // may be implementation specific what this results in
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(Flags, Flag)
#endif
QWindow *window() const { return m_window; }
void setWindow(QWindow *window) { m_window = window; }
......@@ -985,9 +969,7 @@ public:
TextureRead = 1 << 0,
TextureWrite = 1 << 1
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(TexturePrepareFlags, TexturePrepareFlag)
#endif
~QRhiResourceUpdateBatch();
......@@ -1037,9 +1019,7 @@ public:
EnableProfiling = 1 << 0,
EnableDebugMarkers = 1 << 1
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(Flags, Flag)
#endif
enum FrameOpResult {
FrameOpSuccess = 0,
......
......@@ -50,9 +50,7 @@ public:
enum Flag {
GlslEs = 0x01
};
#ifndef Q_CLANG_QDOC
Q_DECLARE_FLAGS(Flags, Flag)
#endif
QBakedShaderVersion() { }
QBakedShaderVersion(int v, Flags f = Flags())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment