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

#include <memory>
#include "../../../../qtquick3d/src/quick3d/qquick3dcustommaterial_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qquick3dcustommaterial_p.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_QQuick3DCustomMaterial_t {
    QByteArrayData data[20];
    char stringdata0[363];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QQuick3DCustomMaterial_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QQuick3DCustomMaterial_t qt_meta_stringdata_QQuick3DCustomMaterial = {
    {
QT_MOC_LITERAL(0, 0, 22), // "QQuick3DCustomMaterial"
QT_MOC_LITERAL(1, 23, 22), // "hasTransparencyChanged"
QT_MOC_LITERAL(2, 46, 0), // ""
QT_MOC_LITERAL(3, 47, 15), // "hasTransparency"
QT_MOC_LITERAL(4, 63, 20), // "hasRefractionChanged"
QT_MOC_LITERAL(5, 84, 13), // "hasRefraction"
QT_MOC_LITERAL(6, 98, 18), // "alwaysDirtyChanged"
QT_MOC_LITERAL(7, 117, 11), // "alwaysDirty"
QT_MOC_LITERAL(8, 129, 18), // "setHasTransparency"
QT_MOC_LITERAL(9, 148, 16), // "setHasRefraction"
QT_MOC_LITERAL(10, 165, 13), // "setShaderInfo"
QT_MOC_LITERAL(11, 179, 30), // "QQuick3DShaderUtilsShaderInfo*"
QT_MOC_LITERAL(12, 210, 10), // "shaderInfo"
QT_MOC_LITERAL(13, 221, 14), // "setAlwaysDirty"
QT_MOC_LITERAL(14, 236, 15), // "onPropertyDirty"
QT_MOC_LITERAL(15, 252, 14), // "onTextureDirty"
QT_MOC_LITERAL(16, 267, 32), // "QQuick3DShaderUtilsTextureInput*"
QT_MOC_LITERAL(17, 300, 7), // "texture"
QT_MOC_LITERAL(18, 308, 6), // "passes"
QT_MOC_LITERAL(19, 315, 47) // "QQmlListProperty<QQuick3DShad..."

    },
    "QQuick3DCustomMaterial\0hasTransparencyChanged\0"
    "\0hasTransparency\0hasRefractionChanged\0"
    "hasRefraction\0alwaysDirtyChanged\0"
    "alwaysDirty\0setHasTransparency\0"
    "setHasRefraction\0setShaderInfo\0"
    "QQuick3DShaderUtilsShaderInfo*\0"
    "shaderInfo\0setAlwaysDirty\0onPropertyDirty\0"
    "onTextureDirty\0QQuick3DShaderUtilsTextureInput*\0"
    "texture\0passes\0"
    "QQmlListProperty<QQuick3DShaderUtilsRenderPass>"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QQuick3DCustomMaterial[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       9,   14, // methods
       5,   84, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   59,    2, 0x06 /* Public */,
       4,    1,   62,    2, 0x06 /* Public */,
       6,    1,   65,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    1,   68,    2, 0x0a /* Public */,
       9,    1,   71,    2, 0x0a /* Public */,
      10,    1,   74,    2, 0x0a /* Public */,
      13,    1,   77,    2, 0x0a /* Public */,
      14,    0,   80,    2, 0x08 /* Private */,
      15,    1,   81,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool,    3,
    QMetaType::Void, QMetaType::Bool,    5,
    QMetaType::Void, QMetaType::Bool,    7,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,    3,
    QMetaType::Void, QMetaType::Bool,    5,
    QMetaType::Void, 0x80000000 | 11,   12,
    QMetaType::Void, QMetaType::Bool,    7,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 16,   17,

 // properties: name, type, flags
       3, QMetaType::Bool, 0x00495103,
       5, QMetaType::Bool, 0x00495103,
       7, QMetaType::Bool, 0x00495103,
      12, 0x80000000 | 11, 0x0009510b,
      18, 0x80000000 | 19, 0x00095009,

 // properties: notify_signal_id
       0,
       1,
       2,
       0,
       0,

       0        // eod
};

void QQuick3DCustomMaterial::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QQuick3DCustomMaterial *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->hasTransparencyChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: _t->hasRefractionChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: _t->alwaysDirtyChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: _t->setHasTransparency((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->setHasRefraction((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->setShaderInfo((*reinterpret_cast< QQuick3DShaderUtilsShaderInfo*(*)>(_a[1]))); break;
        case 6: _t->setAlwaysDirty((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: _t->onPropertyDirty(); break;
        case 8: _t->onTextureDirty((*reinterpret_cast< QQuick3DShaderUtilsTextureInput*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuick3DShaderUtilsShaderInfo* >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuick3DShaderUtilsTextureInput* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QQuick3DCustomMaterial::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuick3DCustomMaterial::hasTransparencyChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QQuick3DCustomMaterial::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuick3DCustomMaterial::hasRefractionChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (QQuick3DCustomMaterial::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuick3DCustomMaterial::alwaysDirtyChanged)) {
                *result = 2;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuick3DShaderUtilsShaderInfo* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QQuick3DCustomMaterial *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->hasTransparency(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->hasRefraction(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->alwaysDirty(); break;
        case 3: *reinterpret_cast< QQuick3DShaderUtilsShaderInfo**>(_v) = _t->shaderInfo(); break;
        case 4: *reinterpret_cast< QQmlListProperty<QQuick3DShaderUtilsRenderPass>*>(_v) = _t->passes(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QQuick3DCustomMaterial *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setHasTransparency(*reinterpret_cast< bool*>(_v)); break;
        case 1: _t->setHasRefraction(*reinterpret_cast< bool*>(_v)); break;
        case 2: _t->setAlwaysDirty(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setShaderInfo(*reinterpret_cast< QQuick3DShaderUtilsShaderInfo**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QQuick3DCustomMaterial::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuick3DMaterial::staticMetaObject>(),
    qt_meta_stringdata_QQuick3DCustomMaterial.data,
    qt_meta_data_QQuick3DCustomMaterial,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *QQuick3DCustomMaterial::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_QQuick3DCustomMaterial.stringdata0))
        return static_cast<void*>(this);
    return QQuick3DMaterial::qt_metacast(_clname);
}

int QQuick3DCustomMaterial::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuick3DMaterial::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 5;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void QQuick3DCustomMaterial::hasTransparencyChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void QQuick3DCustomMaterial::hasRefractionChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void QQuick3DCustomMaterial::alwaysDirtyChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
