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

template <> constexpr inline auto Qt3DRender::QClearBuffers::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender13QClearBuffersE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QClearBuffers",
        "buffersChanged",
        "",
        "BufferType",
        "buffers",
        "clearColorChanged",
        "QColor",
        "color",
        "clearDepthValueChanged",
        "clearDepthValue",
        "clearStencilValueChanged",
        "clearStencilValue",
        "colorBufferChanged",
        "QRenderTargetOutput*",
        "buffer",
        "setBuffers",
        "setClearColor",
        "setClearDepthValue",
        "setClearStencilValue",
        "setColorBuffer",
        "clearColor",
        "colorBuffer",
        "Qt3DRender::QRenderTargetOutput*",
        "None",
        "ColorBuffer",
        "DepthBuffer",
        "StencilBuffer",
        "DepthStencilBuffer",
        "ColorDepthBuffer",
        "ColorDepthStencilBuffer",
        "AllBuffers"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'buffersChanged'
        QtMocHelpers::SignalData<void(enum BufferType)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'clearColorChanged'
        QtMocHelpers::SignalData<void(const QColor &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Signal 'clearDepthValueChanged'
        QtMocHelpers::SignalData<void(float)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 9 },
        }}),
        // Signal 'clearStencilValueChanged'
        QtMocHelpers::SignalData<void(int)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 11 },
        }}),
        // Signal 'colorBufferChanged'
        QtMocHelpers::SignalData<void(QRenderTargetOutput *)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Slot 'setBuffers'
        QtMocHelpers::SlotData<void(enum BufferType)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'setClearColor'
        QtMocHelpers::SlotData<void(const QColor &)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'setClearDepthValue'
        QtMocHelpers::SlotData<void(float)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 9 },
        }}),
        // Slot 'setClearStencilValue'
        QtMocHelpers::SlotData<void(int)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'setColorBuffer'
        QtMocHelpers::SlotData<void(QRenderTargetOutput *)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'buffers'
        QtMocHelpers::PropertyData<enum BufferType>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'clearColor'
        QtMocHelpers::PropertyData<QColor>(20, 0x80000000 | 6, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'clearDepthValue'
        QtMocHelpers::PropertyData<float>(9, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'clearStencilValue'
        QtMocHelpers::PropertyData<int>(11, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'colorBuffer'
        QtMocHelpers::PropertyData<Qt3DRender::QRenderTargetOutput*>(21, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 4),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'BufferType'
        QtMocHelpers::EnumData<enum BufferType>(3, 3, QMC::EnumFlags{}).add({
            {   23, BufferType::None },
            {   24, BufferType::ColorBuffer },
            {   25, BufferType::DepthBuffer },
            {   26, BufferType::StencilBuffer },
            {   27, BufferType::DepthStencilBuffer },
            {   28, BufferType::ColorDepthBuffer },
            {   29, BufferType::ColorDepthStencilBuffer },
            {   30, BufferType::AllBuffers },
        }),
    };
    return QtMocHelpers::metaObjectData<QClearBuffers, qt_meta_tag_ZN10Qt3DRender13QClearBuffersE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QClearBuffers::staticMetaObject = { {
    QMetaObject::SuperData::link<QFrameGraphNode::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender13QClearBuffersE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender13QClearBuffersE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender13QClearBuffersE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QClearBuffers::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QClearBuffers *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->buffersChanged((*reinterpret_cast<std::add_pointer_t<enum BufferType>>(_a[1]))); break;
        case 1: _t->clearColorChanged((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 2: _t->clearDepthValueChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 3: _t->clearStencilValueChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->colorBufferChanged((*reinterpret_cast<std::add_pointer_t<QRenderTargetOutput*>>(_a[1]))); break;
        case 5: _t->setBuffers((*reinterpret_cast<std::add_pointer_t<enum BufferType>>(_a[1]))); break;
        case 6: _t->setClearColor((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
        case 7: _t->setClearDepthValue((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 8: _t->setClearStencilValue((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 9: _t->setColorBuffer((*reinterpret_cast<std::add_pointer_t<QRenderTargetOutput*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QRenderTargetOutput* >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QRenderTargetOutput* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QClearBuffers::*)(BufferType )>(_a, &QClearBuffers::buffersChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QClearBuffers::*)(const QColor & )>(_a, &QClearBuffers::clearColorChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QClearBuffers::*)(float )>(_a, &QClearBuffers::clearDepthValueChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QClearBuffers::*)(int )>(_a, &QClearBuffers::clearStencilValueChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QClearBuffers::*)(QRenderTargetOutput * )>(_a, &QClearBuffers::colorBufferChanged, 4))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DRender::QRenderTargetOutput* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum BufferType*>(_v) = _t->buffers(); break;
        case 1: *reinterpret_cast<QColor*>(_v) = _t->clearColor(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->clearDepthValue(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->clearStencilValue(); break;
        case 4: *reinterpret_cast<Qt3DRender::QRenderTargetOutput**>(_v) = _t->colorBuffer(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setBuffers(*reinterpret_cast<enum BufferType*>(_v)); break;
        case 1: _t->setClearColor(*reinterpret_cast<QColor*>(_v)); break;
        case 2: _t->setClearDepthValue(*reinterpret_cast<float*>(_v)); break;
        case 3: _t->setClearStencilValue(*reinterpret_cast<int*>(_v)); break;
        case 4: _t->setColorBuffer(*reinterpret_cast<Qt3DRender::QRenderTargetOutput**>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DRender::QClearBuffers::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender13QClearBuffersE_t>.strings))
        return static_cast<void*>(this);
    return QFrameGraphNode::qt_metacast(_clname);
}

int Qt3DRender::QClearBuffers::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFrameGraphNode::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::QClearBuffers::buffersChanged(BufferType _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QClearBuffers::clearColorChanged(const QColor & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QClearBuffers::clearDepthValueChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

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

// SIGNAL 4
void Qt3DRender::QClearBuffers::colorBufferChanged(QRenderTargetOutput * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
