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

#include <memory>
#include "../../../../qt3d/src/render/geometry/qbuffer.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qbuffer.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.5. 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_Qt3DRender__QBuffer_t {
    QByteArrayData data[42];
    char stringdata0[478];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Qt3DRender__QBuffer_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Qt3DRender__QBuffer_t qt_meta_stringdata_Qt3DRender__QBuffer = {
    {
QT_MOC_LITERAL(0, 0, 19), // "Qt3DRender::QBuffer"
QT_MOC_LITERAL(1, 20, 11), // "dataChanged"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 5), // "bytes"
QT_MOC_LITERAL(4, 39, 11), // "typeChanged"
QT_MOC_LITERAL(5, 51, 10), // "BufferType"
QT_MOC_LITERAL(6, 62, 4), // "type"
QT_MOC_LITERAL(7, 67, 12), // "usageChanged"
QT_MOC_LITERAL(8, 80, 9), // "UsageType"
QT_MOC_LITERAL(9, 90, 5), // "usage"
QT_MOC_LITERAL(10, 96, 15), // "syncDataChanged"
QT_MOC_LITERAL(11, 112, 8), // "syncData"
QT_MOC_LITERAL(12, 121, 17), // "accessTypeChanged"
QT_MOC_LITERAL(13, 139, 10), // "AccessType"
QT_MOC_LITERAL(14, 150, 6), // "access"
QT_MOC_LITERAL(15, 157, 13), // "dataAvailable"
QT_MOC_LITERAL(16, 171, 7), // "setType"
QT_MOC_LITERAL(17, 179, 8), // "setUsage"
QT_MOC_LITERAL(18, 188, 11), // "setSyncData"
QT_MOC_LITERAL(19, 200, 13), // "setAccessType"
QT_MOC_LITERAL(20, 214, 10), // "updateData"
QT_MOC_LITERAL(21, 225, 6), // "offset"
QT_MOC_LITERAL(22, 232, 10), // "accessType"
QT_MOC_LITERAL(23, 243, 12), // "VertexBuffer"
QT_MOC_LITERAL(24, 256, 11), // "IndexBuffer"
QT_MOC_LITERAL(25, 268, 15), // "PixelPackBuffer"
QT_MOC_LITERAL(26, 284, 17), // "PixelUnpackBuffer"
QT_MOC_LITERAL(27, 302, 13), // "UniformBuffer"
QT_MOC_LITERAL(28, 316, 19), // "ShaderStorageBuffer"
QT_MOC_LITERAL(29, 336, 18), // "DrawIndirectBuffer"
QT_MOC_LITERAL(30, 355, 10), // "StreamDraw"
QT_MOC_LITERAL(31, 366, 10), // "StreamRead"
QT_MOC_LITERAL(32, 377, 10), // "StreamCopy"
QT_MOC_LITERAL(33, 388, 10), // "StaticDraw"
QT_MOC_LITERAL(34, 399, 10), // "StaticRead"
QT_MOC_LITERAL(35, 410, 10), // "StaticCopy"
QT_MOC_LITERAL(36, 421, 11), // "DynamicDraw"
QT_MOC_LITERAL(37, 433, 11), // "DynamicRead"
QT_MOC_LITERAL(38, 445, 11), // "DynamicCopy"
QT_MOC_LITERAL(39, 457, 5), // "Write"
QT_MOC_LITERAL(40, 463, 4), // "Read"
QT_MOC_LITERAL(41, 468, 9) // "ReadWrite"

    },
    "Qt3DRender::QBuffer\0dataChanged\0\0bytes\0"
    "typeChanged\0BufferType\0type\0usageChanged\0"
    "UsageType\0usage\0syncDataChanged\0"
    "syncData\0accessTypeChanged\0AccessType\0"
    "access\0dataAvailable\0setType\0setUsage\0"
    "setSyncData\0setAccessType\0updateData\0"
    "offset\0accessType\0VertexBuffer\0"
    "IndexBuffer\0PixelPackBuffer\0"
    "PixelUnpackBuffer\0UniformBuffer\0"
    "ShaderStorageBuffer\0DrawIndirectBuffer\0"
    "StreamDraw\0StreamRead\0StreamCopy\0"
    "StaticDraw\0StaticRead\0StaticCopy\0"
    "DynamicDraw\0DynamicRead\0DynamicCopy\0"
    "Write\0Read\0ReadWrite"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Qt3DRender__QBuffer[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      11,   14, // methods
       4,  102, // properties
       3,  122, // enums/sets
       0,    0, // constructors
       0,       // flags
       6,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   69,    2, 0x06 /* Public */,
       4,    1,   72,    2, 0x06 /* Public */,
       7,    1,   75,    2, 0x06 /* Public */,
      10,    1,   78,    2, 0x06 /* Public */,
      12,    1,   81,    2, 0x06 /* Public */,
      15,    0,   84,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      16,    1,   85,    2, 0x0a /* Public */,
      17,    1,   88,    2, 0x0a /* Public */,
      18,    1,   91,    2, 0x0a /* Public */,
      19,    1,   94,    2, 0x0a /* Public */,

 // methods: name, argc, parameters, tag, flags
      20,    2,   97,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QByteArray,    3,
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Void, 0x80000000 | 13,   14,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void, QMetaType::Bool,   11,
    QMetaType::Void, 0x80000000 | 13,   14,

 // methods: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::QByteArray,   21,    3,

 // properties: name, type, flags
       6, 0x80000000 | 5, 0x0049510b,
       9, 0x80000000 | 8, 0x0049510b,
      11, QMetaType::Bool, 0x00495103,
      22, 0x80000000 | 13, 0x00c9510b,

 // properties: notify_signal_id
       1,
       2,
       3,
       4,

 // properties: revision
       0,
       0,
       0,
       9,

 // enums: name, alias, flags, count, data
       5,    5, 0x0,    7,  137,
       8,    8, 0x0,    9,  151,
      13,   13, 0x0,    3,  169,

 // enum data: key, value
      23, uint(Qt3DRender::QBuffer::VertexBuffer),
      24, uint(Qt3DRender::QBuffer::IndexBuffer),
      25, uint(Qt3DRender::QBuffer::PixelPackBuffer),
      26, uint(Qt3DRender::QBuffer::PixelUnpackBuffer),
      27, uint(Qt3DRender::QBuffer::UniformBuffer),
      28, uint(Qt3DRender::QBuffer::ShaderStorageBuffer),
      29, uint(Qt3DRender::QBuffer::DrawIndirectBuffer),
      30, uint(Qt3DRender::QBuffer::StreamDraw),
      31, uint(Qt3DRender::QBuffer::StreamRead),
      32, uint(Qt3DRender::QBuffer::StreamCopy),
      33, uint(Qt3DRender::QBuffer::StaticDraw),
      34, uint(Qt3DRender::QBuffer::StaticRead),
      35, uint(Qt3DRender::QBuffer::StaticCopy),
      36, uint(Qt3DRender::QBuffer::DynamicDraw),
      37, uint(Qt3DRender::QBuffer::DynamicRead),
      38, uint(Qt3DRender::QBuffer::DynamicCopy),
      39, uint(Qt3DRender::QBuffer::Write),
      40, uint(Qt3DRender::QBuffer::Read),
      41, uint(Qt3DRender::QBuffer::ReadWrite),

       0        // eod
};

void Qt3DRender::QBuffer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QBuffer *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->dataChanged((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 1: _t->typeChanged((*reinterpret_cast< BufferType(*)>(_a[1]))); break;
        case 2: _t->usageChanged((*reinterpret_cast< UsageType(*)>(_a[1]))); break;
        case 3: _t->syncDataChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->accessTypeChanged((*reinterpret_cast< AccessType(*)>(_a[1]))); break;
        case 5: _t->dataAvailable(); break;
        case 6: _t->setType((*reinterpret_cast< BufferType(*)>(_a[1]))); break;
        case 7: _t->setUsage((*reinterpret_cast< UsageType(*)>(_a[1]))); break;
        case 8: _t->setSyncData((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 9: _t->setAccessType((*reinterpret_cast< AccessType(*)>(_a[1]))); break;
        case 10: _t->updateData((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QByteArray(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QBuffer::*)(const QByteArray & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QBuffer::dataChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QBuffer::*)(BufferType );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QBuffer::typeChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (QBuffer::*)(UsageType );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QBuffer::usageChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (QBuffer::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QBuffer::syncDataChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (QBuffer::*)(AccessType );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QBuffer::accessTypeChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (QBuffer::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QBuffer::dataAvailable)) {
                *result = 5;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QBuffer *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< BufferType*>(_v) = _t->type(); break;
        case 1: *reinterpret_cast< UsageType*>(_v) = _t->usage(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->isSyncData(); break;
        case 3: *reinterpret_cast< AccessType*>(_v) = _t->accessType(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QBuffer *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setType(*reinterpret_cast< BufferType*>(_v)); break;
        case 1: _t->setUsage(*reinterpret_cast< UsageType*>(_v)); break;
        case 2: _t->setSyncData(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setAccessType(*reinterpret_cast< AccessType*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject Qt3DRender::QBuffer::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QNode::staticMetaObject>(),
    qt_meta_stringdata_Qt3DRender__QBuffer.data,
    qt_meta_data_Qt3DRender__QBuffer,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *Qt3DRender::QBuffer::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Qt3DRender__QBuffer.stringdata0))
        return static_cast<void*>(this);
    return Qt3DCore::QNode::qt_metacast(_clname);
}

int Qt3DRender::QBuffer::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 < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 11;
    }
#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 -= 4;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 4;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

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

// SIGNAL 2
void Qt3DRender::QBuffer::usageChanged(UsageType _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

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

// SIGNAL 4
void Qt3DRender::QBuffer::accessTypeChanged(AccessType _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void Qt3DRender::QBuffer::dataAvailable()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
