16#include <QtGui/qtguiglobal.h>
17#include <QtCore/qhash.h>
18#include <QtCore/qmap.h>
42 int version()
const {
return m_version; }
108 NonIndexedVertexAsComputeShader
123 bool isValid()
const;
126 void setStage(Stage stage);
136 QByteArray serialized(SerializedFormatVersion version = SerializedFormatVersion::Latest)
const;
151 void setSeparateToCombinedImageSamplerMappingList(
const QShaderKey &
key,
153 void removeSeparateToCombinedImageSamplerMappingList(
const QShaderKey &
key);
167 friend Q_GUI_EXPORT
size_t qHash(
const QShader &,
size_t)
noexcept;
168#ifndef QT_NO_DEBUG_STREAM
203 return !(lhs == rhs);
214 return !(lhs == rhs);
219 return !(lhs == rhs);
224 return !(lhs == rhs);
229#ifndef QT_NO_DEBUG_STREAM
QByteArray shader() const
void setShader(const QByteArray &code)
Sets the shader source or byte code.
QByteArray entryPoint() const
void setEntryPoint(const QByteArray &entry)
Sets the entry point name.
void setSource(QShader::Source s)
Sets the shader type s.
void setSourceVariant(QShader::Variant svar)
Sets the type of variant to use to svar.
void setSourceVersion(const QShaderVersion &sver)
Sets the shading language version sver.
QShader::Source source() const
QShaderVersion sourceVersion() const
QShader::Variant sourceVariant() const
void setVersion(int v)
Sets the shading language version to v.
Flag
Describes the flags that can be set.
void setFlags(Flags f)
Sets the flags f.
SerializedFormatVersion
Describes the desired output format when serializing the QShader.
Variant
Describes what kind of shader code an entry contains.
@ UInt32IndexedVertexAsComputeShader
@ UInt16IndexedVertexAsComputeShader
Source
Describes what kind of shader code an entry contains.
Stage
Describes the stage of the graphics pipeline the shader is suitable for.
@ TessellationEvaluationStage
@ TessellationControlStage
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
size_t qHash(const QFileSystemWatcherPathKey &key, size_t seed=0)
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLsizei const GLfloat * v
[13]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Q_GUI_EXPORT bool operator<(const QShaderVersion &lhs, const QShaderVersion &rhs) noexcept
Q_GUI_EXPORT bool operator==(const QShader &lhs, const QShader &rhs) noexcept
bool operator!=(const QShader &lhs, const QShader &rhs) noexcept
Q_GUI_EXPORT size_t qHash(const QShaderCode &, size_t=0) noexcept
Q_GUI_EXPORT QDebug operator<<(QDebug, const QShader &)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
QFileInfo info(fileName)
[8]
QMap< int, int > extraBufferBindings
QByteArray combinedSamplerName