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
5
6
#
include
"qssgrendergraphobject.h"
7
8
QT_BEGIN_NAMESPACE
9
10
static
const
char
*
asString
(QSSGRenderGraphObject::Type type)
11
{
12
using
Type = QSSGRenderGraphObject::Type;
13
#
define
RETURN_AS_STRING
(
T
)
case
T
:
return
#
T
;
14
switch
(type) {
15
RETURN_AS_STRING
(Type::Unknown)
16
RETURN_AS_STRING
(Type::Node)
17
RETURN_AS_STRING
(Type::Root)
18
RETURN_AS_STRING
(Type::Layer)
19
RETURN_AS_STRING
(Type::Joint)
20
RETURN_AS_STRING
(Type::Skeleton)
21
RETURN_AS_STRING
(Type::ImportScene)
22
RETURN_AS_STRING
(Type::ReflectionProbe)
23
RETURN_AS_STRING
(Type::DirectionalLight)
24
RETURN_AS_STRING
(Type::PointLight)
25
RETURN_AS_STRING
(Type::SpotLight)
26
RETURN_AS_STRING
(Type::OrthographicCamera)
27
RETURN_AS_STRING
(Type::PerspectiveCamera)
28
RETURN_AS_STRING
(Type::CustomFrustumCamera)
29
RETURN_AS_STRING
(Type::CustomCamera)
30
RETURN_AS_STRING
(Type::Model)
31
RETURN_AS_STRING
(Type::Item2D)
32
RETURN_AS_STRING
(Type::Particles)
33
RETURN_AS_STRING
(Type::SceneEnvironment)
34
RETURN_AS_STRING
(Type::Effect)
35
RETURN_AS_STRING
(Type::Geometry)
36
RETURN_AS_STRING
(Type::TextureData)
37
RETURN_AS_STRING
(Type::MorphTarget)
38
RETURN_AS_STRING
(Type::ModelInstance)
39
RETURN_AS_STRING
(Type::ModelBlendParticle)
40
RETURN_AS_STRING
(Type::ResourceLoader)
41
RETURN_AS_STRING
(Type::DefaultMaterial)
42
RETURN_AS_STRING
(Type::PrincipledMaterial)
43
RETURN_AS_STRING
(Type::CustomMaterial)
44
RETURN_AS_STRING
(Type::SpecularGlossyMaterial)
45
RETURN_AS_STRING
(Type::Skin)
46
RETURN_AS_STRING
(Type::Image2D)
47
RETURN_AS_STRING
(Type::ImageCube)
48
RETURN_AS_STRING
(Type::RenderExtension)
49
RETURN_AS_STRING
(Type::TextureProvider)
50
}
51
#
undef
RETURN_AS_STRING
52
return
nullptr
;
53
}
54
55
QSSGRenderGraphObject::QSSGRenderGraphObject(Type inType)
56
: type(inType)
57
, flags(0) {}
58
59
QSSGRenderGraphObject::~QSSGRenderGraphObject() {}
60
61
#
ifndef
QT_NO_DEBUG_STREAM
62
QDebug
operator
<<(QDebug dbg,
const
QSSGRenderGraphObject::Type type)
63
{
64
dbg.nospace() <<
"QSSGRenderGraphObject"
<<
'{'
<<
asString
(
type
)
<<
'}'
;
65
return
dbg;
66
}
67
#
endif
68
69
QT_END_NAMESPACE
QPlatformGraphicsBufferHelper
\inmodule QtGui
operator<<
QDebug operator<<(QDebug debug, QIODevice::OpenMode modes)
Definition
qiodevice.cpp:2374
RETURN_AS_STRING
#define RETURN_AS_STRING(T)
asString
static QT_BEGIN_NAMESPACE const char * asString(QSSGRenderGraphObject::Type type)
Definition
qssgrendergraphobject.cpp:10
qtquick3d
src
runtimerender
graphobjects
qssgrendergraphobject.cpp
Generated on
for Qt by
1.14.0