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

template <> constexpr inline auto Qt3DRender::QRenderCapabilities::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender19QRenderCapabilitiesE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QRenderCapabilities",
        "valid",
        "api",
        "API",
        "profile",
        "Profile",
        "majorVersion",
        "minorVersion",
        "extensions",
        "vendor",
        "renderer",
        "driverVersion",
        "glslVersion",
        "maxSamples",
        "maxTextureSize",
        "maxTextureUnits",
        "maxTextureLayers",
        "supportsUBO",
        "maxUBOSize",
        "maxUBOBindings",
        "supportsSSBO",
        "maxSSBOSize",
        "maxSSBOBindings",
        "supportsImageStore",
        "maxImageUnits",
        "supportsCompute",
        "maxWorkGroupCountX",
        "maxWorkGroupCountY",
        "maxWorkGroupCountZ",
        "maxWorkGroupSizeX",
        "maxWorkGroupSizeY",
        "maxWorkGroupSizeZ",
        "maxComputeInvocations",
        "maxComputeSharedMemorySize",
        "OpenGL",
        "OpenGLES",
        "Vulkan",
        "DirectX",
        "RHI",
        "NoProfile",
        "CoreProfile",
        "CompatibilityProfile"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'valid'
        QtMocHelpers::PropertyData<bool>(1, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'api'
        QtMocHelpers::PropertyData<enum API>(2, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'profile'
        QtMocHelpers::PropertyData<enum Profile>(4, 0x80000000 | 5, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'majorVersion'
        QtMocHelpers::PropertyData<int>(6, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'minorVersion'
        QtMocHelpers::PropertyData<int>(7, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'extensions'
        QtMocHelpers::PropertyData<QStringList>(8, QMetaType::QStringList, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'vendor'
        QtMocHelpers::PropertyData<QString>(9, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'renderer'
        QtMocHelpers::PropertyData<QString>(10, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'driverVersion'
        QtMocHelpers::PropertyData<QString>(11, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'glslVersion'
        QtMocHelpers::PropertyData<QString>(12, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxSamples'
        QtMocHelpers::PropertyData<int>(13, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxTextureSize'
        QtMocHelpers::PropertyData<int>(14, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxTextureUnits'
        QtMocHelpers::PropertyData<int>(15, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxTextureLayers'
        QtMocHelpers::PropertyData<int>(16, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'supportsUBO'
        QtMocHelpers::PropertyData<bool>(17, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxUBOSize'
        QtMocHelpers::PropertyData<int>(18, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxUBOBindings'
        QtMocHelpers::PropertyData<int>(19, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'supportsSSBO'
        QtMocHelpers::PropertyData<bool>(20, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxSSBOSize'
        QtMocHelpers::PropertyData<int>(21, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxSSBOBindings'
        QtMocHelpers::PropertyData<int>(22, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'supportsImageStore'
        QtMocHelpers::PropertyData<bool>(23, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxImageUnits'
        QtMocHelpers::PropertyData<int>(24, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'supportsCompute'
        QtMocHelpers::PropertyData<bool>(25, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxWorkGroupCountX'
        QtMocHelpers::PropertyData<int>(26, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxWorkGroupCountY'
        QtMocHelpers::PropertyData<int>(27, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxWorkGroupCountZ'
        QtMocHelpers::PropertyData<int>(28, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxWorkGroupSizeX'
        QtMocHelpers::PropertyData<int>(29, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxWorkGroupSizeY'
        QtMocHelpers::PropertyData<int>(30, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxWorkGroupSizeZ'
        QtMocHelpers::PropertyData<int>(31, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxComputeInvocations'
        QtMocHelpers::PropertyData<int>(32, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'maxComputeSharedMemorySize'
        QtMocHelpers::PropertyData<int>(33, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'API'
        QtMocHelpers::EnumData<enum API>(3, 3, QMC::EnumFlags{}).add({
            {   34, API::OpenGL },
            {   35, API::OpenGLES },
            {   36, API::Vulkan },
            {   37, API::DirectX },
            {   38, API::RHI },
        }),
        // enum 'Profile'
        QtMocHelpers::EnumData<enum Profile>(5, 5, QMC::EnumFlags{}).add({
            {   39, Profile::NoProfile },
            {   40, Profile::CoreProfile },
            {   41, Profile::CompatibilityProfile },
        }),
    };
    return QtMocHelpers::metaObjectData<QRenderCapabilities, qt_meta_tag_ZN10Qt3DRender19QRenderCapabilitiesE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QRenderCapabilities::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender19QRenderCapabilitiesE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender19QRenderCapabilitiesE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender19QRenderCapabilitiesE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QRenderCapabilities::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QRenderCapabilities *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isValid(); break;
        case 1: *reinterpret_cast<enum API*>(_v) = _t->api(); break;
        case 2: *reinterpret_cast<enum Profile*>(_v) = _t->profile(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->majorVersion(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->minorVersion(); break;
        case 5: *reinterpret_cast<QStringList*>(_v) = _t->extensions(); break;
        case 6: *reinterpret_cast<QString*>(_v) = _t->vendor(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->renderer(); break;
        case 8: *reinterpret_cast<QString*>(_v) = _t->driverVersion(); break;
        case 9: *reinterpret_cast<QString*>(_v) = _t->glslVersion(); break;
        case 10: *reinterpret_cast<int*>(_v) = _t->maxSamples(); break;
        case 11: *reinterpret_cast<int*>(_v) = _t->maxTextureSize(); break;
        case 12: *reinterpret_cast<int*>(_v) = _t->maxTextureUnits(); break;
        case 13: *reinterpret_cast<int*>(_v) = _t->maxTextureLayers(); break;
        case 14: *reinterpret_cast<bool*>(_v) = _t->supportsUBO(); break;
        case 15: *reinterpret_cast<int*>(_v) = _t->maxUBOSize(); break;
        case 16: *reinterpret_cast<int*>(_v) = _t->maxUBOBindings(); break;
        case 17: *reinterpret_cast<bool*>(_v) = _t->supportsSSBO(); break;
        case 18: *reinterpret_cast<int*>(_v) = _t->maxSSBOSize(); break;
        case 19: *reinterpret_cast<int*>(_v) = _t->maxSSBOBindings(); break;
        case 20: *reinterpret_cast<bool*>(_v) = _t->supportsImageStore(); break;
        case 21: *reinterpret_cast<int*>(_v) = _t->maxImageUnits(); break;
        case 22: *reinterpret_cast<bool*>(_v) = _t->supportsCompute(); break;
        case 23: *reinterpret_cast<int*>(_v) = _t->maxWorkGroupCountX(); break;
        case 24: *reinterpret_cast<int*>(_v) = _t->maxWorkGroupCountY(); break;
        case 25: *reinterpret_cast<int*>(_v) = _t->maxWorkGroupCountZ(); break;
        case 26: *reinterpret_cast<int*>(_v) = _t->maxWorkGroupSizeX(); break;
        case 27: *reinterpret_cast<int*>(_v) = _t->maxWorkGroupSizeY(); break;
        case 28: *reinterpret_cast<int*>(_v) = _t->maxWorkGroupSizeZ(); break;
        case 29: *reinterpret_cast<int*>(_v) = _t->maxComputeInvocations(); break;
        case 30: *reinterpret_cast<int*>(_v) = _t->maxComputeSharedMemorySize(); break;
        default: break;
        }
    }
}

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

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

int Qt3DRender::QRenderCapabilities::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 31;
    }
    return _id;
}
QT_WARNING_POP
