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

#include "../../../../src/qt3d-opensource-src-5.5.1/src/render/frontend/qshaderprogram.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qshaderprogram.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.5.1. 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
struct qt_meta_stringdata_Qt3D__QShaderProgram_t {
    QByteArrayData data[23];
    char stringdata0[444];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Qt3D__QShaderProgram_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Qt3D__QShaderProgram_t qt_meta_stringdata_Qt3D__QShaderProgram = {
    {
QT_MOC_LITERAL(0, 0, 20), // "Qt3D::QShaderProgram"
QT_MOC_LITERAL(1, 21, 23), // "vertexShaderCodeChanged"
QT_MOC_LITERAL(2, 45, 0), // ""
QT_MOC_LITERAL(3, 46, 36), // "tessellationControlShaderCode..."
QT_MOC_LITERAL(4, 83, 39), // "tessellationEvaluationShaderC..."
QT_MOC_LITERAL(5, 123, 25), // "geometryShaderCodeChanged"
QT_MOC_LITERAL(6, 149, 25), // "fragmentShaderCodeChanged"
QT_MOC_LITERAL(7, 175, 24), // "computeShaderCodeChanged"
QT_MOC_LITERAL(8, 200, 10), // "loadSource"
QT_MOC_LITERAL(9, 211, 9), // "sourceUrl"
QT_MOC_LITERAL(10, 221, 16), // "vertexShaderCode"
QT_MOC_LITERAL(11, 238, 29), // "tessellationControlShaderCode"
QT_MOC_LITERAL(12, 268, 32), // "tessellationEvaluationShaderCode"
QT_MOC_LITERAL(13, 301, 18), // "geometryShaderCode"
QT_MOC_LITERAL(14, 320, 18), // "fragmentShaderCode"
QT_MOC_LITERAL(15, 339, 17), // "computeShaderCode"
QT_MOC_LITERAL(16, 357, 10), // "ShaderType"
QT_MOC_LITERAL(17, 368, 6), // "Vertex"
QT_MOC_LITERAL(18, 375, 8), // "Fragment"
QT_MOC_LITERAL(19, 384, 19), // "TessellationControl"
QT_MOC_LITERAL(20, 404, 22), // "TessellationEvaluation"
QT_MOC_LITERAL(21, 427, 8), // "Geometry"
QT_MOC_LITERAL(22, 436, 7) // "Compute"

    },
    "Qt3D::QShaderProgram\0vertexShaderCodeChanged\0"
    "\0tessellationControlShaderCodeChanged\0"
    "tessellationEvaluationShaderCodeChanged\0"
    "geometryShaderCodeChanged\0"
    "fragmentShaderCodeChanged\0"
    "computeShaderCodeChanged\0loadSource\0"
    "sourceUrl\0vertexShaderCode\0"
    "tessellationControlShaderCode\0"
    "tessellationEvaluationShaderCode\0"
    "geometryShaderCode\0fragmentShaderCode\0"
    "computeShaderCode\0ShaderType\0Vertex\0"
    "Fragment\0TessellationControl\0"
    "TessellationEvaluation\0Geometry\0Compute"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Qt3D__QShaderProgram[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       7,   14, // methods
       6,   58, // properties
       1,   82, // enums/sets
       0,    0, // constructors
       0,       // flags
       6,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   49,    2, 0x06 /* Public */,
       3,    0,   50,    2, 0x06 /* Public */,
       4,    0,   51,    2, 0x06 /* Public */,
       5,    0,   52,    2, 0x06 /* Public */,
       6,    0,   53,    2, 0x06 /* Public */,
       7,    0,   54,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
       8,    1,   55,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // methods: parameters
    QMetaType::QByteArray, QMetaType::QUrl,    9,

 // properties: name, type, flags
      10, QMetaType::QByteArray, 0x00495103,
      11, QMetaType::QByteArray, 0x00495103,
      12, QMetaType::QByteArray, 0x00495103,
      13, QMetaType::QByteArray, 0x00495103,
      14, QMetaType::QByteArray, 0x00495103,
      15, QMetaType::QByteArray, 0x00495103,

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

 // enums: name, flags, count, data
      16, 0x0,    6,   86,

 // enum data: key, value
      17, uint(Qt3D::QShaderProgram::Vertex),
      18, uint(Qt3D::QShaderProgram::Fragment),
      19, uint(Qt3D::QShaderProgram::TessellationControl),
      20, uint(Qt3D::QShaderProgram::TessellationEvaluation),
      21, uint(Qt3D::QShaderProgram::Geometry),
      22, uint(Qt3D::QShaderProgram::Compute),

       0        // eod
};

void Qt3D::QShaderProgram::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QShaderProgram *_t = static_cast<QShaderProgram *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->vertexShaderCodeChanged(); break;
        case 1: _t->tessellationControlShaderCodeChanged(); break;
        case 2: _t->tessellationEvaluationShaderCodeChanged(); break;
        case 3: _t->geometryShaderCodeChanged(); break;
        case 4: _t->fragmentShaderCodeChanged(); break;
        case 5: _t->computeShaderCodeChanged(); break;
        case 6: { QByteArray _r = _t->loadSource((*reinterpret_cast< const QUrl(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QByteArray*>(_a[0]) = _r; }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (QShaderProgram::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QShaderProgram::vertexShaderCodeChanged)) {
                *result = 0;
            }
        }
        {
            typedef void (QShaderProgram::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QShaderProgram::tessellationControlShaderCodeChanged)) {
                *result = 1;
            }
        }
        {
            typedef void (QShaderProgram::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QShaderProgram::tessellationEvaluationShaderCodeChanged)) {
                *result = 2;
            }
        }
        {
            typedef void (QShaderProgram::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QShaderProgram::geometryShaderCodeChanged)) {
                *result = 3;
            }
        }
        {
            typedef void (QShaderProgram::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QShaderProgram::fragmentShaderCodeChanged)) {
                *result = 4;
            }
        }
        {
            typedef void (QShaderProgram::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QShaderProgram::computeShaderCodeChanged)) {
                *result = 5;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        QShaderProgram *_t = static_cast<QShaderProgram *>(_o);
        Q_UNUSED(_t)
        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;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        QShaderProgram *_t = static_cast<QShaderProgram *>(_o);
        Q_UNUSED(_t)
        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;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Qt3D::QShaderProgram::staticMetaObject = {
    { &QNode::staticMetaObject, qt_meta_stringdata_Qt3D__QShaderProgram.data,
      qt_meta_data_Qt3D__QShaderProgram,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *Qt3D::QShaderProgram::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_Qt3D__QShaderProgram.stringdata0))
        return static_cast<void*>(const_cast< QShaderProgram*>(this));
    return QNode::qt_metacast(_clname);
}

int Qt3D::QShaderProgram::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QNode::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 7;
    }
#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 -= 6;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 6;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void Qt3D::QShaderProgram::vertexShaderCodeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void Qt3D::QShaderProgram::tessellationControlShaderCodeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void Qt3D::QShaderProgram::tessellationEvaluationShaderCodeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}

// SIGNAL 3
void Qt3D::QShaderProgram::geometryShaderCodeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
}

// SIGNAL 4
void Qt3D::QShaderProgram::fragmentShaderCodeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, Q_NULLPTR);
}

// SIGNAL 5
void Qt3D::QShaderProgram::computeShaderCodeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
