/****************************************************************************
** Meta object code from reading C++ file 'qshaderprogram.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.12.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../qt3d/src/render/materialsystem/qshaderprogram.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qshaderprogram.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN10Qt3DRender14QShaderProgramE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DRender::QShaderProgram::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender14QShaderProgramE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QShaderProgram",
        "vertexShaderCodeChanged",
        "",
        "vertexShaderCode",
        "tessellationControlShaderCodeChanged",
        "tessellationControlShaderCode",
        "tessellationEvaluationShaderCodeChanged",
        "tessellationEvaluationShaderCode",
        "geometryShaderCodeChanged",
        "geometryShaderCode",
        "fragmentShaderCodeChanged",
        "fragmentShaderCode",
        "computeShaderCodeChanged",
        "computeShaderCode",
        "logChanged",
        "log",
        "statusChanged",
        "Status",
        "status",
        "formatChanged",
        "Format",
        "format",
        "setVertexShaderCode",
        "setTessellationControlShaderCode",
        "setTessellationEvaluationShaderCode",
        "setGeometryShaderCode",
        "setFragmentShaderCode",
        "setComputeShaderCode",
        "loadSource",
        "QUrl",
        "sourceUrl",
        "ShaderType",
        "Vertex",
        "Fragment",
        "TessellationControl",
        "TessellationEvaluation",
        "Geometry",
        "Compute",
        "NotReady",
        "Ready",
        "Error",
        "GLSL",
        "SPIRV"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'vertexShaderCodeChanged'
        QtMocHelpers::SignalData<void(const QByteArray &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 3 },
        }}),
        // Signal 'tessellationControlShaderCodeChanged'
        QtMocHelpers::SignalData<void(const QByteArray &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 5 },
        }}),
        // Signal 'tessellationEvaluationShaderCodeChanged'
        QtMocHelpers::SignalData<void(const QByteArray &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 7 },
        }}),
        // Signal 'geometryShaderCodeChanged'
        QtMocHelpers::SignalData<void(const QByteArray &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 9 },
        }}),
        // Signal 'fragmentShaderCodeChanged'
        QtMocHelpers::SignalData<void(const QByteArray &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 11 },
        }}),
        // Signal 'computeShaderCodeChanged'
        QtMocHelpers::SignalData<void(const QByteArray &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 13 },
        }}),
        // Signal 'logChanged'
        QtMocHelpers::SignalData<void(const QString &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 15 },
        }}),
        // Signal 'statusChanged'
        QtMocHelpers::SignalData<void(enum Status)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 18 },
        }}),
        // Signal 'formatChanged'
        QtMocHelpers::SignalData<void(enum Format)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 21 },
        }}),
        // Slot 'setVertexShaderCode'
        QtMocHelpers::SlotData<void(const QByteArray &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 3 },
        }}),
        // Slot 'setTessellationControlShaderCode'
        QtMocHelpers::SlotData<void(const QByteArray &)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 5 },
        }}),
        // Slot 'setTessellationEvaluationShaderCode'
        QtMocHelpers::SlotData<void(const QByteArray &)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 7 },
        }}),
        // Slot 'setGeometryShaderCode'
        QtMocHelpers::SlotData<void(const QByteArray &)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 9 },
        }}),
        // Slot 'setFragmentShaderCode'
        QtMocHelpers::SlotData<void(const QByteArray &)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 11 },
        }}),
        // Slot 'setComputeShaderCode'
        QtMocHelpers::SlotData<void(const QByteArray &)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QByteArray, 13 },
        }}),
        // Method 'loadSource'
        QtMocHelpers::MethodData<QByteArray(const QUrl &)>(28, 2, QMC::AccessPublic, QMetaType::QByteArray, {{
            { 0x80000000 | 29, 30 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'vertexShaderCode'
        QtMocHelpers::PropertyData<QByteArray>(3, QMetaType::QByteArray, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'tessellationControlShaderCode'
        QtMocHelpers::PropertyData<QByteArray>(5, QMetaType::QByteArray, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'tessellationEvaluationShaderCode'
        QtMocHelpers::PropertyData<QByteArray>(7, QMetaType::QByteArray, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'geometryShaderCode'
        QtMocHelpers::PropertyData<QByteArray>(9, QMetaType::QByteArray, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'fragmentShaderCode'
        QtMocHelpers::PropertyData<QByteArray>(11, QMetaType::QByteArray, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'computeShaderCode'
        QtMocHelpers::PropertyData<QByteArray>(13, QMetaType::QByteArray, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'log'
        QtMocHelpers::PropertyData<QString>(15, QMetaType::QString, QMC::DefaultPropertyFlags, 6, 0x209),
        // property 'status'
        QtMocHelpers::PropertyData<enum Status>(18, 0x80000000 | 17, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 7, 0x209),
        // property 'format'
        QtMocHelpers::PropertyData<enum Format>(21, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 8, 0x20f),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'ShaderType'
        QtMocHelpers::EnumData<enum ShaderType>(31, 31, QMC::EnumFlags{}).add({
            {   32, ShaderType::Vertex },
            {   33, ShaderType::Fragment },
            {   34, ShaderType::TessellationControl },
            {   35, ShaderType::TessellationEvaluation },
            {   36, ShaderType::Geometry },
            {   37, ShaderType::Compute },
        }),
        // enum 'Status'
        QtMocHelpers::EnumData<enum Status>(17, 17, QMC::EnumFlags{}).add({
            {   38, Status::NotReady },
            {   39, Status::Ready },
            {   40, Status::Error },
        }),
        // enum 'Format'
        QtMocHelpers::EnumData<enum Format>(20, 20, QMC::EnumFlags{}).add({
            {   41, Format::GLSL },
            {   42, Format::SPIRV },
        }),
    };
    return QtMocHelpers::metaObjectData<QShaderProgram, qt_meta_tag_ZN10Qt3DRender14QShaderProgramE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QShaderProgram::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QNode::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender14QShaderProgramE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender14QShaderProgramE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender14QShaderProgramE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QShaderProgram::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QShaderProgram *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->vertexShaderCodeChanged((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 1: _t->tessellationControlShaderCodeChanged((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 2: _t->tessellationEvaluationShaderCodeChanged((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 3: _t->geometryShaderCodeChanged((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 4: _t->fragmentShaderCodeChanged((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 5: _t->computeShaderCodeChanged((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 6: _t->logChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 7: _t->statusChanged((*reinterpret_cast<std::add_pointer_t<enum Status>>(_a[1]))); break;
        case 8: _t->formatChanged((*reinterpret_cast<std::add_pointer_t<enum Format>>(_a[1]))); break;
        case 9: _t->setVertexShaderCode((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 10: _t->setTessellationControlShaderCode((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 11: _t->setTessellationEvaluationShaderCode((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 12: _t->setGeometryShaderCode((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 13: _t->setFragmentShaderCode((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 14: _t->setComputeShaderCode((*reinterpret_cast<std::add_pointer_t<QByteArray>>(_a[1]))); break;
        case 15: { QByteArray _r = _t->loadSource((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QByteArray*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QShaderProgram::*)(const QByteArray & )>(_a, &QShaderProgram::vertexShaderCodeChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderProgram::*)(const QByteArray & )>(_a, &QShaderProgram::tessellationControlShaderCodeChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderProgram::*)(const QByteArray & )>(_a, &QShaderProgram::tessellationEvaluationShaderCodeChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderProgram::*)(const QByteArray & )>(_a, &QShaderProgram::geometryShaderCodeChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderProgram::*)(const QByteArray & )>(_a, &QShaderProgram::fragmentShaderCodeChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderProgram::*)(const QByteArray & )>(_a, &QShaderProgram::computeShaderCodeChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderProgram::*)(const QString & )>(_a, &QShaderProgram::logChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderProgram::*)(Status )>(_a, &QShaderProgram::statusChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderProgram::*)(Format )>(_a, &QShaderProgram::formatChanged, 8))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QByteArray*>(_v) = _t->vertexShaderCode(); break;
        case 1: *reinterpret_cast<QByteArray*>(_v) = _t->tessellationControlShaderCode(); break;
        case 2: *reinterpret_cast<QByteArray*>(_v) = _t->tessellationEvaluationShaderCode(); break;
        case 3: *reinterpret_cast<QByteArray*>(_v) = _t->geometryShaderCode(); break;
        case 4: *reinterpret_cast<QByteArray*>(_v) = _t->fragmentShaderCode(); break;
        case 5: *reinterpret_cast<QByteArray*>(_v) = _t->computeShaderCode(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->log(); break;
        case 7: *reinterpret_cast<enum Status*>(_v) = _t->status(); break;
        case 8: *reinterpret_cast<enum Format*>(_v) = _t->format(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setVertexShaderCode(*reinterpret_cast<QByteArray*>(_v)); break;
        case 1: _t->setTessellationControlShaderCode(*reinterpret_cast<QByteArray*>(_v)); break;
        case 2: _t->setTessellationEvaluationShaderCode(*reinterpret_cast<QByteArray*>(_v)); break;
        case 3: _t->setGeometryShaderCode(*reinterpret_cast<QByteArray*>(_v)); break;
        case 4: _t->setFragmentShaderCode(*reinterpret_cast<QByteArray*>(_v)); break;
        case 5: _t->setComputeShaderCode(*reinterpret_cast<QByteArray*>(_v)); break;
        case 8: _t->setFormat(*reinterpret_cast<enum Format*>(_v)); break;
        default: break;
        }
    }
}

const QMetaObject *Qt3DRender::QShaderProgram::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *Qt3DRender::QShaderProgram::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender14QShaderProgramE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DCore::QNode::qt_metacast(_clname);
}

int Qt3DRender::QShaderProgram::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DCore::QNode::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 16;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::QShaderProgram::vertexShaderCodeChanged(const QByteArray & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QShaderProgram::tessellationControlShaderCodeChanged(const QByteArray & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QShaderProgram::tessellationEvaluationShaderCodeChanged(const QByteArray & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DRender::QShaderProgram::geometryShaderCodeChanged(const QByteArray & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DRender::QShaderProgram::fragmentShaderCodeChanged(const QByteArray & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Qt3DRender::QShaderProgram::computeShaderCodeChanged(const QByteArray & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void Qt3DRender::QShaderProgram::logChanged(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void Qt3DRender::QShaderProgram::statusChanged(Status _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void Qt3DRender::QShaderProgram::formatChanged(Format _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}
QT_WARNING_POP
