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::SkyMaterial)
46 RETURN_AS_STRING(Type::DefaultMaterial)
47 RETURN_AS_STRING(Type::PrincipledMaterial)
48 RETURN_AS_STRING(Type::CustomMaterial)
49 RETURN_AS_STRING(Type::SpecularGlossyMaterial)
50 RETURN_AS_STRING(Type::Skin)
51 RETURN_AS_STRING(Type::Image2D)
52 RETURN_AS_STRING(Type::ImageCube)
53 RETURN_AS_STRING(Type::RenderExtension)
54 RETURN_AS_STRING(Type::TextureProvider)
55 }
56#undef RETURN_AS_STRING
57 return nullptr;
58}
59
60QSSGRenderGraphObject::QSSGRenderGraphObject(Type inType)
61 : type(inType)
62 , flags(0) {}
63
64QSSGRenderGraphObject::~QSSGRenderGraphObject() {}
65
66#ifndef QT_NO_DEBUG_STREAM
67QDebug operator<<(QDebug dbg, const QSSGRenderGraphObject::Type type)
68{
69 dbg.nospace() << "QSSGRenderGraphObject" << '{' << asString(type) << '}';
70 return dbg;
71}
72#endif
73
74QT_END_NAMESPACE
Combined button and popup list for selecting options.
QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition qdir.cpp:2582
#define RETURN_AS_STRING(T)
static QT_BEGIN_NAMESPACE const char * asString(QSSGRenderGraphObject::Type type)