![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtGui More...
#include <qshader.h>
Public Member Functions | |
| QShaderCode ()=default | |
| QShaderCode (const QByteArray &code, const QByteArray &entry=QByteArray()) | |
| Constructs a new QShaderCode with the specified shader source code and entry point name. | |
| 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. | |
Friends | |
| Q_GUI_EXPORT size_t | qHash (const QShaderCode &k, size_t seed=0) |
Related Symbols | |
(Note that these are not member symbols.) | |
| bool | operator== (const QShaderCode &lhs, const QShaderCode &rhs) noexcept |
Returns true if the two QShaderCode objects lhs and rhs are equal. | |
| bool | operator!= (const QShaderCode &lhs, const QShaderCode &rhs) |
Returns false if the values in the two QShaderCode objects lhs and rhs are equal; otherwise returns true. | |
\inmodule QtGui
Contains source or binary code for a shader and additional metadata.
When shader() is empty after retrieving a QShaderCode instance from QShader, it indicates no shader code was found for the requested key.
|
default |
| QShaderCode::QShaderCode | ( | const QByteArray & | code, |
| const QByteArray & | entry = QByteArray() ) |
Constructs a new QShaderCode with the specified shader source code and entry point name.
Definition at line 710 of file qshader.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
Returns false if the values in the two QShaderCode objects lhs and rhs are equal; otherwise returns true.
|
Returns true if the two QShaderCode objects lhs and rhs are equal.
Definition at line 932 of file qshader.cpp.
|
friend |
Definition at line 950 of file qshader.cpp.