Contains source or binary code for a shader and additional metadata. More...
| Header: | #include <QShaderCode> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Since: | Qt 6.6 |
| QShaderCode() | |
| QShaderCode(const QByteArray &code, const QByteArray &entry = QByteArray()) | |
| QByteArray | entryPoint() const |
| void | setEntryPoint(const QByteArray &entry) |
| void | setShader(const QByteArray &code) |
| QByteArray | shader() const |
| size_t | qHash(const QShaderCode &key, size_t seed = 0) |
| bool | operator!=(const QShaderCode &lhs, const QShaderCode &rhs) |
| bool | operator==(const QShaderCode &lhs, const QShaderCode &rhs) |
When shader() is empty after retrieving a QShaderCode instance from QShader, it indicates no shader code was found for the requested key.
Note: This is a RHI API with limited compatibility guarantees, see QShader for details.
[constexpr noexcept] QShaderCode::QShaderCode()Constructs a new QShaderCode with the specified shader source code and entry point name.
Returns the entry point name.
See also setEntryPoint().
Sets the entry point name.
See also entryPoint().
Sets the shader source or byte code.
See also shader().
Returns the shader source or bytecode.
See also setShader().
[noexcept] size_t qHash(const QShaderCode &key, size_t seed = 0)Returns the hash value for key, using seed to seed the calculation.
[noexcept] 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.
[noexcept] bool operator==(const QShaderCode &lhs, const QShaderCode &rhs)Returns true if the two QShaderCode objects lhs and rhs are equal.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: