Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qssgrendergraphobject.cpp
Go to the documentation of this file.
1// Copyright (C) 2008-2012 NVIDIA Corporation.
2// Copyright (C) 2019 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6
7
9
11
12static const char *asString(QSSGRenderGraphObject::Type type)
13{
14 using Type = QSSGRenderGraphObject::Type;
15#define RETURN_AS_STRING(T) case T: return #T;
16 switch (type) {
17 RETURN_AS_STRING(Type::Unknown)
18 RETURN_AS_STRING(Type::Node)
19 RETURN_AS_STRING(Type::Root)
20 RETURN_AS_STRING(Type::Layer)
21 RETURN_AS_STRING(Type::Joint)
22 RETURN_AS_STRING(Type::Skeleton)
23 RETURN_AS_STRING(Type::ImportScene)
24 RETURN_AS_STRING(Type::ReflectionProbe)
25 RETURN_AS_STRING(Type::SceneRoot)
26 RETURN_AS_STRING(Type::DirectionalLight)
27 RETURN_AS_STRING(Type::PointLight)
28 RETURN_AS_STRING(Type::SpotLight)
29 RETURN_AS_STRING(Type::OrthographicCamera)
30 RETURN_AS_STRING(Type::PerspectiveCamera)
31 RETURN_AS_STRING(Type::CustomFrustumCamera)
32 RETURN_AS_STRING(Type::CustomCamera)
33 RETURN_AS_STRING(Type::Model)
34 RETURN_AS_STRING(Type::Item2D)
35 RETURN_AS_STRING(Type::Particles)
36 RETURN_AS_STRING(Type::SceneEnvironment)
37 RETURN_AS_STRING(Type::Effect)
38 RETURN_AS_STRING(Type::Geometry)
39 RETURN_AS_STRING(Type::TextureData)
40 RETURN_AS_STRING(Type::MorphTarget)
41 RETURN_AS_STRING(Type::ModelInstance)
42 RETURN_AS_STRING(Type::ModelBlendParticle)
43 RETURN_AS_STRING(Type::ResourceLoader)
44 RETURN_AS_STRING(Type::RenderPass)
45 RETURN_AS_STRING(Type::DefaultMaterial)
46 RETURN_AS_STRING(Type::PrincipledMaterial)
47 RETURN_AS_STRING(Type::CustomMaterial)
48 RETURN_AS_STRING(Type::SpecularGlossyMaterial)
49 RETURN_AS_STRING(Type::Skin)
50 RETURN_AS_STRING(Type::Image2D)
51 RETURN_AS_STRING(Type::ImageCube)
52 RETURN_AS_STRING(Type::RenderExtension)
53 RETURN_AS_STRING(Type::TextureProvider)
54 }
55#undef RETURN_AS_STRING
56 return nullptr;
57}
58
59QSSGRenderGraphObject::QSSGRenderGraphObject(Type inType)
60 : type(inType)
61 , flags(0) {}
62
63QSSGRenderGraphObject::~QSSGRenderGraphObject() {}
64
65#ifndef QT_NO_DEBUG_STREAM
66QDebug operator<<(QDebug dbg, const QSSGRenderGraphObject::Type type)
67{
68 dbg.nospace() << "QSSGRenderGraphObject" << '{' << asString(type) << '}';
69 return dbg;
70}
71#endif
72
73QT_END_NAMESPACE
Combined button and popup list for selecting options.
QDebug operator<<(QDebug debug, QIODevice::OpenMode modes)
#define RETURN_AS_STRING(T)
static QT_BEGIN_NAMESPACE const char * asString(QSSGRenderGraphObject::Type type)