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
QSSGRenderTextureData Class Reference

#include <qssgrendertexturedata_p.h>

+ Inheritance diagram for QSSGRenderTextureData:
+ Collaboration diagram for QSSGRenderTextureData:

Public Member Functions

 QSSGRenderTextureData ()
 
virtual ~QSSGRenderTextureData ()
 
const QByteArraytextureData () const
 
void setTextureData (const QByteArray &data)
 
QSize size () const
 
void setSize (const QSize &size)
 
int depth () const
 
void setDepth (int depth)
 
QSSGRenderTextureFormat format () const
 
void setFormat (QSSGRenderTextureFormat format)
 
bool hasTransparency () const
 
void setHasTransparency (bool hasTransparency)
 
quint32 version () const
 
- Public Member Functions inherited from QSSGRenderGraphObject
bool hasGraphicsResources () const noexcept
 
virtual Q_QUICK3D_PROFILE_ID_ ~QSSGRenderGraphObject ()
 

Public Attributes

QString debugObjectName
 
- Public Attributes inherited from QSSGRenderGraphObject
const Type type
 
FlagT flags { 0 }
 

Protected Member Functions

 QSSGRenderTextureData (QSSGRenderGraphObject::Type inType)
 
- Protected Member Functions inherited from QSSGRenderGraphObject
 QSSGRenderGraphObject (QSSGRenderGraphObject::Type inType)
 
 QSSGRenderGraphObject (QSSGRenderGraphObject::Type inType, FlagT inFlags)
 

Protected Attributes

QByteArray m_textureData
 
QSize m_size
 
int m_depth = 0
 
quint32 m_textureDataVersion = 0
 
QSSGRenderTextureFormat m_format = QSSGRenderTextureFormat::Unknown
 
bool m_hasTransparency = false
 

Additional Inherited Members

- Public Types inherited from QSSGRenderGraphObject
enum  BaseType : quint32 {
  Node = 0x1000 , Light = 0x2000 , Camera = 0x4000 , Renderable = 0x8000 ,
  Resource = 0x10000 , Material = 0x20000 , Texture = 0x40000 , Extension = 0x80000 ,
  User = 0x80000000
}
 
enum class  Type : quint32 {
  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
}
 
enum class  Flags : quint32 { HasGraphicsResources = 0x1 }
 
using TypeT = std::underlying_type_t<Type>
 
using FlagT = std::underlying_type_t<Flags>
 
- Static Public Member Functions inherited from QSSGRenderGraphObject
static constexpr bool isNodeType (Type type) noexcept
 
static constexpr bool isLight (Type type) noexcept
 
static constexpr bool isCamera (Type type) noexcept
 
static constexpr bool isMaterial (Type type) noexcept
 
static constexpr bool isTexture (Type type) noexcept
 
static constexpr bool isRenderable (Type type) noexcept
 
static constexpr bool isResource (Type type) noexcept
 
static constexpr bool isExtension (Type type) noexcept
 
static constexpr bool isUserType (Type type) noexcept
 

Detailed Description

Definition at line 27 of file qssgrendertexturedata_p.h.

Constructor & Destructor Documentation

◆ QSSGRenderTextureData() [1/2]

QT_BEGIN_NAMESPACE QSSGRenderTextureData::QSSGRenderTextureData ( )
explicit

Definition at line 8 of file qssgrendertexturedata.cpp.

◆ ~QSSGRenderTextureData()

QSSGRenderTextureData::~QSSGRenderTextureData ( )
virtual

Definition at line 20 of file qssgrendertexturedata.cpp.

◆ QSSGRenderTextureData() [2/2]

QSSGRenderTextureData::QSSGRenderTextureData ( QSSGRenderGraphObject::Type inType)
explicitprotected

Definition at line 14 of file qssgrendertexturedata.cpp.

Member Function Documentation

◆ depth()

int QSSGRenderTextureData::depth ( ) const
inline

Definition at line 39 of file qssgrendertexturedata_p.h.

◆ format()

QSSGRenderTextureFormat QSSGRenderTextureData::format ( ) const
inline

Definition at line 42 of file qssgrendertexturedata_p.h.

◆ hasTransparency()

bool QSSGRenderTextureData::hasTransparency ( ) const
inline

Definition at line 45 of file qssgrendertexturedata_p.h.

◆ setDepth()

void QSSGRenderTextureData::setDepth ( int depth)

Definition at line 44 of file qssgrendertexturedata.cpp.

◆ setFormat()

void QSSGRenderTextureData::setFormat ( QSSGRenderTextureFormat format)

Definition at line 51 of file qssgrendertexturedata.cpp.

◆ setHasTransparency()

void QSSGRenderTextureData::setHasTransparency ( bool hasTransparency)

Definition at line 59 of file qssgrendertexturedata.cpp.

◆ setSize()

void QSSGRenderTextureData::setSize ( const QSize & size)

Definition at line 37 of file qssgrendertexturedata.cpp.

◆ setTextureData()

void QSSGRenderTextureData::setTextureData ( const QByteArray & data)

Definition at line 30 of file qssgrendertexturedata.cpp.

◆ size()

QSize QSSGRenderTextureData::size ( ) const
inline

Definition at line 36 of file qssgrendertexturedata_p.h.

◆ textureData()

const QByteArray & QSSGRenderTextureData::textureData ( ) const

Definition at line 25 of file qssgrendertexturedata.cpp.

◆ version()

quint32 QSSGRenderTextureData::version ( ) const
inlinenodiscard

Definition at line 49 of file qssgrendertexturedata_p.h.

Member Data Documentation

◆ debugObjectName

QString QSSGRenderTextureData::debugObjectName

Definition at line 51 of file qssgrendertexturedata_p.h.

◆ m_depth

int QSSGRenderTextureData::m_depth = 0
protected

Definition at line 61 of file qssgrendertexturedata_p.h.

◆ m_format

QSSGRenderTextureFormat QSSGRenderTextureData::m_format = QSSGRenderTextureFormat::Unknown
protected

Definition at line 63 of file qssgrendertexturedata_p.h.

◆ m_hasTransparency

bool QSSGRenderTextureData::m_hasTransparency = false
protected

Definition at line 64 of file qssgrendertexturedata_p.h.

◆ m_size

QSize QSSGRenderTextureData::m_size
protected

Definition at line 60 of file qssgrendertexturedata_p.h.

◆ m_textureData

QByteArray QSSGRenderTextureData::m_textureData
protected

Definition at line 59 of file qssgrendertexturedata_p.h.

◆ m_textureDataVersion

quint32 QSSGRenderTextureData::m_textureDataVersion = 0
protected

Definition at line 62 of file qssgrendertexturedata_p.h.


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