![]() |
Qt 6.x
The Qt SDK
|
\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 &, size_t) noexcept |
Returns the hash value for k, using seed to seed the calculation. | |
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 . | |
size_t | qHash (const QShaderCode &k, size_t seed) noexcept |
Returns the hash value for k, using seed to seed the calculation. | |
\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 670 of file qshader.cpp.
|
inline |
Definition at line 68 of file qshader.h.
Referenced by QRhiD3D11::compileHlslShaderSource(), QVkGraphicsPipeline::create(), QVkComputePipeline::create(), and QRhiMetalData::createMetalLib().
|
inline |
|
inline |
|
inline |
Definition at line 65 of file qshader.h.
Referenced by QRhiD3D11::compileHlslShaderSource(), QVkGraphicsPipeline::create(), QVkComputePipeline::create(), and QRhiMetalData::createMetalLib().
|
related |
Returns false
if the values in the two QShaderCode objects lhs and rhs are equal; otherwise returns true
.
|
related |
Returns true
if the two QShaderCode objects lhs and rhs are equal.
Definition at line 894 of file qshader.cpp.
|
friend |
Returns the hash value for k, using seed to seed the calculation.
Definition at line 913 of file qshader.cpp.
|
related |
Returns the hash value for k, using seed to seed the calculation.
Definition at line 913 of file qshader.cpp.