Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSSGRenderGraphObject Struct Reference

#include <qssgrendergraphobject_p.h>

+ Inheritance diagram for QSSGRenderGraphObject:
+ Collaboration diagram for QSSGRenderGraphObject:

Public Types

enum  BaseType : quint16 {
  Node = 0x10 , Light = 0x20 , Camera = 0x40 , Renderable = 0x80 ,
  Resource = 0x100 , Material = 0x200 , Texture = 0x400 , Extension = 0x800
}
 
enum class  Type : quint16 {
  Unknown = 0 , Node = BaseType::Node , Layer , Joint ,
  Skeleton , ImportScene , ReflectionProbe , DirectionalLight = BaseType::Light | BaseType::Node ,
  PointLight , SpotLight , OrthographicCamera = BaseType::Camera | BaseType::Node , PerspectiveCamera ,
  CustomFrustumCamera , CustomCamera , Model = BaseType::Renderable | BaseType::Node , Item2D ,
  Particles , SceneEnvironment = BaseType::Resource , Effect , Geometry ,
  TextureData , MorphTarget , ModelInstance , ModelBlendParticle ,
  ResourceLoader , DefaultMaterial = BaseType::Material | BaseType::Resource , PrincipledMaterial , CustomMaterial ,
  SpecularGlossyMaterial , Skin , Image2D = BaseType::Texture | BaseType::Resource , ImageCube ,
  RenderExtension = BaseType::Extension
}
 

Public Member Functions

Q_QUICK3D_PROFILE_ID QSSGRenderGraphObject (QSSGRenderGraphObject::Type inType)
 
virtual ~QSSGRenderGraphObject ()
 

Static Public Member Functions

static Q_REQUIRED_RESULT constexpr bool isNodeType (Type type) Q_DECL_NOTHROW
 
static Q_REQUIRED_RESULT constexpr bool isLight (Type type) Q_DECL_NOTHROW
 
static Q_REQUIRED_RESULT constexpr bool isCamera (Type type) Q_DECL_NOTHROW
 
static Q_REQUIRED_RESULT constexpr bool isMaterial (Type type) Q_DECL_NOTHROW
 
static Q_REQUIRED_RESULT constexpr bool isTexture (Type type) Q_DECL_NOTHROW
 
static Q_REQUIRED_RESULT constexpr bool isRenderable (Type type) Q_DECL_NOTHROW
 
static Q_REQUIRED_RESULT constexpr bool isResource (Type type) Q_DECL_NOTHROW
 
static constexpr bool isExtension (Type type) noexcept
 
static Q_REQUIRED_RESULT constexpr bool hasGraphicsResources (Type type) Q_DECL_NOTHROW
 
static const char * asString (QSSGRenderGraphObject::Type type)
 
static QDebug debugPrintImpl (QDebug stream, QSSGRenderGraphObject::Type type)
 

Public Attributes

Type type
 

Friends

QDebug operator<< (QDebug stream, QSSGRenderGraphObject::Type type)
 

Detailed Description

Definition at line 28 of file qssgrendergraphobject_p.h.

Member Enumeration Documentation

◆ BaseType

Enumerator
Node 
Light 
Camera 
Renderable 
Resource 
Material 
Texture 
Extension 

Definition at line 34 of file qssgrendergraphobject_p.h.

◆ Type

enum class QSSGRenderGraphObject::Type : quint16
strong
Enumerator
Unknown 
Node 
Layer 
Joint 
Skeleton 
ImportScene 
ReflectionProbe 
DirectionalLight 
PointLight 
SpotLight 
OrthographicCamera 
PerspectiveCamera 
CustomFrustumCamera 
CustomCamera 
Model 
Item2D 
Particles 
SceneEnvironment 
Effect 
Geometry 
TextureData 
MorphTarget 
ModelInstance 
ModelBlendParticle 
ResourceLoader 
DefaultMaterial 
PrincipledMaterial 
CustomMaterial 
SpecularGlossyMaterial 
Skin 
Image2D 
ImageCube 
RenderExtension 

Definition at line 46 of file qssgrendergraphobject_p.h.

Constructor & Destructor Documentation

◆ QSSGRenderGraphObject()

Q_QUICK3D_PROFILE_ID QSSGRenderGraphObject::QSSGRenderGraphObject ( QSSGRenderGraphObject::Type  inType)
inlineexplicit

Definition at line 147 of file qssgrendergraphobject_p.h.

◆ ~QSSGRenderGraphObject()

QT_BEGIN_NAMESPACE QSSGRenderGraphObject::~QSSGRenderGraphObject ( )
virtual

Definition at line 10 of file qssgrendergraphobject.cpp.

Member Function Documentation

◆ asString()

const char * QSSGRenderGraphObject::asString ( QSSGRenderGraphObject::Type  type)
static

Definition at line 12 of file qssgrendergraphobject.cpp.

References RETURN_AS_STRING.

Referenced by debugPrintImpl().

+ Here is the caller graph for this function:

◆ debugPrintImpl()

QDebug QSSGRenderGraphObject::debugPrintImpl ( QDebug  stream,
QSSGRenderGraphObject::Type  type 
)
static

Definition at line 54 of file qssgrendergraphobject.cpp.

References asString().

+ Here is the call graph for this function:

◆ hasGraphicsResources()

static Q_REQUIRED_RESULT constexpr bool QSSGRenderGraphObject::hasGraphicsResources ( Type  type)
inlinestaticconstexpr

Definition at line 130 of file qssgrendergraphobject_p.h.

Referenced by QQuick3DSceneManager::cleanupNodes(), and QQuick3DWindowAttachment::queueForCleanup().

+ Here is the caller graph for this function:

◆ isCamera()

static Q_REQUIRED_RESULT constexpr bool QSSGRenderGraphObject::isCamera ( Type  type)
inlinestaticconstexpr

Definition at line 99 of file qssgrendergraphobject_p.h.

Referenced by QSSGRenderCamera::QSSGRenderCamera(), and maybeQueueNodeForRender().

+ Here is the caller graph for this function:

◆ isExtension()

static constexpr bool QSSGRenderGraphObject::isExtension ( Type  type)
inlinestaticconstexprnoexcept

Definition at line 124 of file qssgrendergraphobject_p.h.

Referenced by QQuick3DObjectPrivate::addToDirtyList(), QQuick3DSceneManager::extensionListIndex(), and QQuick3DSceneRenderer::synchronize().

+ Here is the caller graph for this function:

◆ isLight()

static Q_REQUIRED_RESULT constexpr bool QSSGRenderGraphObject::isLight ( Type  type)
inlinestaticconstexpr

Definition at line 94 of file qssgrendergraphobject_p.h.

Referenced by QSSGRenderLight::QSSGRenderLight(), maybeQueueNodeForRender(), and QQuick3DSceneManager::nodeListIndex().

+ Here is the caller graph for this function:

◆ isMaterial()

static Q_REQUIRED_RESULT constexpr bool QSSGRenderGraphObject::isMaterial ( Type  type)
inlinestaticconstexpr

Definition at line 104 of file qssgrendergraphobject_p.h.

Referenced by QSSGSubsetRenderable::defaultMaterial().

+ Here is the caller graph for this function:

◆ isNodeType()

static Q_REQUIRED_RESULT constexpr bool QSSGRenderGraphObject::isNodeType ( Type  type)
inlinestaticconstexpr

Definition at line 89 of file qssgrendergraphobject_p.h.

Referenced by QQuick3DNode::QQuick3DNode(), QQuick3DObjectPrivate::addToDirtyList(), QQuick3DSceneManager::cleanupNodes(), QQuick3DSceneManager::nodeListIndex(), and QQuick3DSceneManager::resourceListIndex().

+ Here is the caller graph for this function:

◆ isRenderable()

static Q_REQUIRED_RESULT constexpr bool QSSGRenderGraphObject::isRenderable ( Type  type)
inlinestaticconstexpr

Definition at line 114 of file qssgrendergraphobject_p.h.

Referenced by dfs(), and maybeQueueNodeForRender().

+ Here is the caller graph for this function:

◆ isResource()

static Q_REQUIRED_RESULT constexpr bool QSSGRenderGraphObject::isResource ( Type  type)
inlinestaticconstexpr

Definition at line 119 of file qssgrendergraphobject_p.h.

Referenced by QSSGSceneDesc::addNode(), QSSGQmlUtilities::writeQmlForNode(), and QSSGQmlUtilities::writeQmlForResourceNode().

+ Here is the caller graph for this function:

◆ isTexture()

static Q_REQUIRED_RESULT constexpr bool QSSGRenderGraphObject::isTexture ( Type  type)
inlinestaticconstexpr

Definition at line 109 of file qssgrendergraphobject_p.h.

Referenced by QQuick3DSceneManager::resourceListIndex(), QSSGQmlUtilities::valueToQml(), and QSSGQmlUtilities::writeQml().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

QDebug operator<< ( QDebug  stream,
QSSGRenderGraphObject::Type  type 
)
friend

Definition at line 155 of file qssgrendergraphobject_p.h.

Member Data Documentation

◆ type


The documentation for this struct was generated from the following files: