Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSSGRenderTextureData Class Reference

#include <qssgrendertexturedata_p.h>

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

Public Member Functions

 QSSGRenderTextureData ()
 
 QSSGRenderTextureData (QSSGRenderGraphObject::Type inType)
 
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 hasTransparancy () const
 
void setHasTransparency (bool hasTransparency)
 
uint32_t generationId () const
 
- Public Member Functions inherited from QSSGRenderGraphObject
Q_QUICK3D_PROFILE_ID QSSGRenderGraphObject (QSSGRenderGraphObject::Type inType)
 
virtual ~QSSGRenderGraphObject ()
 

Public Attributes

QString debugObjectName
 
- Public Attributes inherited from QSSGRenderGraphObject
Type type
 

Protected Member Functions

void markDirty ()
 

Protected Attributes

QByteArray m_textureData
 
QSize m_size
 
int m_depth = 0
 
QSSGRenderTextureFormat m_format = QSSGRenderTextureFormat::Unknown
 
bool m_hasTransparency = false
 
uint32_t m_generationId = 1
 

Additional Inherited Members

- Public Types inherited from QSSGRenderGraphObject
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
}
 
- Static Public Member Functions inherited from QSSGRenderGraphObject
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)
 

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() [2/2]

QSSGRenderTextureData::QSSGRenderTextureData ( QSSGRenderGraphObject::Type  inType)
explicit

Definition at line 14 of file qssgrendertexturedata.cpp.

◆ ~QSSGRenderTextureData()

QSSGRenderTextureData::~QSSGRenderTextureData ( )
virtual

Definition at line 20 of file qssgrendertexturedata.cpp.

Member Function Documentation

◆ depth()

int QSSGRenderTextureData::depth ( ) const

Definition at line 49 of file qssgrendertexturedata.cpp.

References m_depth.

Referenced by QSSGLoadedTexture::loadTextureData(), and setDepth().

+ Here is the caller graph for this function:

◆ format()

QSSGRenderTextureFormat QSSGRenderTextureData::format ( ) const

Definition at line 62 of file qssgrendertexturedata.cpp.

References m_format.

Referenced by QSSGLoadedTexture::loadTextureData(), and setFormat().

+ Here is the caller graph for this function:

◆ generationId()

uint32_t QSSGRenderTextureData::generationId ( ) const

Definition at line 90 of file qssgrendertexturedata.cpp.

References m_generationId.

◆ hasTransparancy()

bool QSSGRenderTextureData::hasTransparancy ( ) const

Definition at line 76 of file qssgrendertexturedata.cpp.

References m_hasTransparency.

◆ markDirty()

void QSSGRenderTextureData::markDirty ( )
protected

Definition at line 95 of file qssgrendertexturedata.cpp.

References m_generationId.

Referenced by setDepth(), setFormat(), setHasTransparency(), setSize(), and setTextureData().

+ Here is the caller graph for this function:

◆ setDepth()

void QSSGRenderTextureData::setDepth ( int  depth)

Definition at line 54 of file qssgrendertexturedata.cpp.

References depth(), m_depth, and markDirty().

+ Here is the call graph for this function:

◆ setFormat()

void QSSGRenderTextureData::setFormat ( QSSGRenderTextureFormat  format)

Definition at line 67 of file qssgrendertexturedata.cpp.

References format(), m_format, and markDirty().

Referenced by QSSGRenderSkeleton::QSSGRenderSkeleton(), and QSSGRenderSkin::QSSGRenderSkin().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setHasTransparency()

void QSSGRenderTextureData::setHasTransparency ( bool  hasTransparency)

Definition at line 81 of file qssgrendertexturedata.cpp.

References m_hasTransparency, and markDirty().

+ Here is the call graph for this function:

◆ setSize()

void QSSGRenderTextureData::setSize ( const QSize size)

Definition at line 41 of file qssgrendertexturedata.cpp.

References m_size, markDirty(), and size().

+ Here is the call graph for this function:

◆ setTextureData()

void QSSGRenderTextureData::setTextureData ( const QByteArray data)

Definition at line 30 of file qssgrendertexturedata.cpp.

References m_textureData, and markDirty().

+ Here is the call graph for this function:

◆ size()

QSize QSSGRenderTextureData::size ( ) const

Definition at line 36 of file qssgrendertexturedata.cpp.

References m_size.

Referenced by QSSGLoadedTexture::loadTextureData(), and setSize().

+ Here is the caller graph for this function:

◆ textureData()

const QByteArray & QSSGRenderTextureData::textureData ( ) const

Definition at line 25 of file qssgrendertexturedata.cpp.

References m_textureData.

Referenced by QSSGLoadedTexture::loadTextureData().

+ Here is the caller graph for this function:

Member Data Documentation

◆ debugObjectName

QString QSSGRenderTextureData::debugObjectName

Definition at line 52 of file qssgrendertexturedata_p.h.

◆ m_depth

int QSSGRenderTextureData::m_depth = 0
protected

Definition at line 61 of file qssgrendertexturedata_p.h.

Referenced by depth(), and setDepth().

◆ m_format

QSSGRenderTextureFormat QSSGRenderTextureData::m_format = QSSGRenderTextureFormat::Unknown
protected

Definition at line 62 of file qssgrendertexturedata_p.h.

Referenced by format(), and setFormat().

◆ m_generationId

uint32_t QSSGRenderTextureData::m_generationId = 1
protected

Definition at line 64 of file qssgrendertexturedata_p.h.

Referenced by generationId(), and markDirty().

◆ m_hasTransparency

bool QSSGRenderTextureData::m_hasTransparency = false
protected

Definition at line 63 of file qssgrendertexturedata_p.h.

Referenced by hasTransparancy(), and setHasTransparency().

◆ m_size

QSize QSSGRenderTextureData::m_size
protected

Definition at line 60 of file qssgrendertexturedata_p.h.

Referenced by setSize(), and size().

◆ m_textureData

QByteArray QSSGRenderTextureData::m_textureData
protected

Definition at line 59 of file qssgrendertexturedata_p.h.

Referenced by QSSGRenderSkin::boneData(), setTextureData(), and textureData().


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