/****************************************************************************
** Meta object code from reading C++ file 'qshaderimage.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/qshaderimage.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 'qshaderimage.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_ZN10Qt3DRender12QShaderImageE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DRender::QShaderImage::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender12QShaderImageE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QShaderImage",
        "textureChanged",
        "",
        "Qt3DRender::QAbstractTexture*",
        "texture",
        "layeredChanged",
        "layered",
        "mipLevelChanged",
        "mipLevel",
        "layerChanged",
        "layer",
        "accessChanged",
        "Access",
        "access",
        "formatChanged",
        "ImageFormat",
        "format",
        "setTexture",
        "setLayered",
        "setMipLevel",
        "setLayer",
        "setAccess",
        "setFormat",
        "ReadOnly",
        "WriteOnly",
        "ReadWrite",
        "NoFormat",
        "Automatic",
        "R8_UNorm",
        "RG8_UNorm",
        "RGBA8_UNorm",
        "R16_UNorm",
        "RG16_UNorm",
        "RGBA16_UNorm",
        "R8_SNorm",
        "RG8_SNorm",
        "RGBA8_SNorm",
        "R16_SNorm",
        "RG16_SNorm",
        "RGBA16_SNorm",
        "R8U",
        "RG8U",
        "RGBA8U",
        "R16U",
        "RG16U",
        "RGBA16U",
        "R32U",
        "RG32U",
        "RGBA32U",
        "R8I",
        "RG8I",
        "RGBA8I",
        "R16I",
        "RG16I",
        "RGBA16I",
        "R32I",
        "RG32I",
        "RGBA32I",
        "R16F",
        "RG16F",
        "RGBA16F",
        "R32F",
        "RG32F",
        "RGBA32F",
        "RG11B10F",
        "RGB10A2",
        "RGB10A2U"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'textureChanged'
        QtMocHelpers::SignalData<void(Qt3DRender::QAbstractTexture *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'layeredChanged'
        QtMocHelpers::SignalData<void(bool)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 6 },
        }}),
        // Signal 'mipLevelChanged'
        QtMocHelpers::SignalData<void(int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Signal 'layerChanged'
        QtMocHelpers::SignalData<void(int)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 10 },
        }}),
        // Signal 'accessChanged'
        QtMocHelpers::SignalData<void(enum Access)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Signal 'formatChanged'
        QtMocHelpers::SignalData<void(enum ImageFormat)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Slot 'setTexture'
        QtMocHelpers::SlotData<void(Qt3DRender::QAbstractTexture *)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'setLayered'
        QtMocHelpers::SlotData<void(bool)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 6 },
        }}),
        // Slot 'setMipLevel'
        QtMocHelpers::SlotData<void(int)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Slot 'setLayer'
        QtMocHelpers::SlotData<void(int)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 10 },
        }}),
        // Slot 'setAccess'
        QtMocHelpers::SlotData<void(enum Access)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'setFormat'
        QtMocHelpers::SlotData<void(enum ImageFormat)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'texture'
        QtMocHelpers::PropertyData<Qt3DRender::QAbstractTexture*>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'layered'
        QtMocHelpers::PropertyData<bool>(6, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'mipLevel'
        QtMocHelpers::PropertyData<int>(8, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'layer'
        QtMocHelpers::PropertyData<int>(10, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'access'
        QtMocHelpers::PropertyData<enum Access>(13, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 4),
        // property 'format'
        QtMocHelpers::PropertyData<enum ImageFormat>(16, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Access'
        QtMocHelpers::EnumData<enum Access>(12, 12, QMC::EnumFlags{}).add({
            {   23, Access::ReadOnly },
            {   24, Access::WriteOnly },
            {   25, Access::ReadWrite },
        }),
        // enum 'ImageFormat'
        QtMocHelpers::EnumData<enum ImageFormat>(15, 15, QMC::EnumFlags{}).add({
            {   26, ImageFormat::NoFormat },
            {   27, ImageFormat::Automatic },
            {   28, ImageFormat::R8_UNorm },
            {   29, ImageFormat::RG8_UNorm },
            {   30, ImageFormat::RGBA8_UNorm },
            {   31, ImageFormat::R16_UNorm },
            {   32, ImageFormat::RG16_UNorm },
            {   33, ImageFormat::RGBA16_UNorm },
            {   34, ImageFormat::R8_SNorm },
            {   35, ImageFormat::RG8_SNorm },
            {   36, ImageFormat::RGBA8_SNorm },
            {   37, ImageFormat::R16_SNorm },
            {   38, ImageFormat::RG16_SNorm },
            {   39, ImageFormat::RGBA16_SNorm },
            {   40, ImageFormat::R8U },
            {   41, ImageFormat::RG8U },
            {   42, ImageFormat::RGBA8U },
            {   43, ImageFormat::R16U },
            {   44, ImageFormat::RG16U },
            {   45, ImageFormat::RGBA16U },
            {   46, ImageFormat::R32U },
            {   47, ImageFormat::RG32U },
            {   48, ImageFormat::RGBA32U },
            {   49, ImageFormat::R8I },
            {   50, ImageFormat::RG8I },
            {   51, ImageFormat::RGBA8I },
            {   52, ImageFormat::R16I },
            {   53, ImageFormat::RG16I },
            {   54, ImageFormat::RGBA16I },
            {   55, ImageFormat::R32I },
            {   56, ImageFormat::RG32I },
            {   57, ImageFormat::RGBA32I },
            {   58, ImageFormat::R16F },
            {   59, ImageFormat::RG16F },
            {   60, ImageFormat::RGBA16F },
            {   61, ImageFormat::R32F },
            {   62, ImageFormat::RG32F },
            {   63, ImageFormat::RGBA32F },
            {   64, ImageFormat::RG11B10F },
            {   65, ImageFormat::RGB10A2 },
            {   66, ImageFormat::RGB10A2U },
        }),
    };
    return QtMocHelpers::metaObjectData<QShaderImage, qt_meta_tag_ZN10Qt3DRender12QShaderImageE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QShaderImage::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QNode::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender12QShaderImageE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender12QShaderImageE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender12QShaderImageE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QShaderImage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QShaderImage *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->textureChanged((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QAbstractTexture*>>(_a[1]))); break;
        case 1: _t->layeredChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->mipLevelChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->layerChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->accessChanged((*reinterpret_cast<std::add_pointer_t<enum Access>>(_a[1]))); break;
        case 5: _t->formatChanged((*reinterpret_cast<std::add_pointer_t<enum ImageFormat>>(_a[1]))); break;
        case 6: _t->setTexture((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QAbstractTexture*>>(_a[1]))); break;
        case 7: _t->setLayered((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: _t->setMipLevel((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 9: _t->setLayer((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 10: _t->setAccess((*reinterpret_cast<std::add_pointer_t<enum Access>>(_a[1]))); break;
        case 11: _t->setFormat((*reinterpret_cast<std::add_pointer_t<enum ImageFormat>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DRender::QAbstractTexture* >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DRender::QAbstractTexture* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QShaderImage::*)(Qt3DRender::QAbstractTexture * )>(_a, &QShaderImage::textureChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderImage::*)(bool )>(_a, &QShaderImage::layeredChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderImage::*)(int )>(_a, &QShaderImage::mipLevelChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderImage::*)(int )>(_a, &QShaderImage::layerChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderImage::*)(Access )>(_a, &QShaderImage::accessChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (QShaderImage::*)(ImageFormat )>(_a, &QShaderImage::formatChanged, 5))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DRender::QAbstractTexture* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<Qt3DRender::QAbstractTexture**>(_v) = _t->texture(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->layered(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->mipLevel(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->layer(); break;
        case 4: *reinterpret_cast<enum Access*>(_v) = _t->access(); break;
        case 5: *reinterpret_cast<enum ImageFormat*>(_v) = _t->format(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setTexture(*reinterpret_cast<Qt3DRender::QAbstractTexture**>(_v)); break;
        case 1: _t->setLayered(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setMipLevel(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->setLayer(*reinterpret_cast<int*>(_v)); break;
        case 4: _t->setAccess(*reinterpret_cast<enum Access*>(_v)); break;
        case 5: _t->setFormat(*reinterpret_cast<enum ImageFormat*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DRender::QShaderImage::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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::QShaderImage::textureChanged(Qt3DRender::QAbstractTexture * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QShaderImage::layeredChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QShaderImage::mipLevelChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DRender::QShaderImage::layerChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DRender::QShaderImage::accessChanged(Access _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Qt3DRender::QShaderImage::formatChanged(ImageFormat _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
