Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSSGLayerRenderPreparationResult Struct Reference

#include <qssglayerrenderdata_p.h>

+ Collaboration diagram for QSSGLayerRenderPreparationResult:

Public Member Functions

 QSSGLayerRenderPreparationResult ()=default
 
 QSSGLayerRenderPreparationResult (const QRectF &inViewport, QSSGRenderLayer &inLayer)
 
bool isNull () const
 
bool isLayerVisible () const
 
QSize textureDimensions () const
 
QSSGCameraGlobalCalculationResult setupCameraForRender (QSSGRenderCamera &inCamera, float dpr=1.0f)
 

Public Attributes

QSSGLayerRenderPreparationResultFlags flags
 
QRectF viewport
 
QSSGRenderLayerlayer = nullptr
 

Detailed Description

Definition at line 130 of file qssglayerrenderdata_p.h.

Constructor & Destructor Documentation

◆ QSSGLayerRenderPreparationResult() [1/2]

QSSGLayerRenderPreparationResult::QSSGLayerRenderPreparationResult ( )
default

◆ QSSGLayerRenderPreparationResult() [2/2]

QSSGLayerRenderPreparationResult::QSSGLayerRenderPreparationResult ( const QRectF & inViewport,
QSSGRenderLayer & inLayer )

Definition at line 2648 of file qssglayerrenderdata.cpp.

References viewport.

Member Function Documentation

◆ isLayerVisible()

bool QSSGLayerRenderPreparationResult::isLayerVisible ( ) const

Definition at line 2654 of file qssglayerrenderdata.cpp.

References QRectF::height(), viewport, and QRectF::width().

+ Here is the call graph for this function:

◆ isNull()

bool QSSGLayerRenderPreparationResult::isNull ( ) const
inline

Definition at line 139 of file qssglayerrenderdata_p.h.

References layer.

Referenced by QSSGLayerRenderData::prepareForRender().

+ Here is the caller graph for this function:

◆ setupCameraForRender()

QSSGCameraGlobalCalculationResult QSSGLayerRenderPreparationResult::setupCameraForRender ( QSSGRenderCamera & inCamera,
float dpr = 1.0f )

Definition at line 2665 of file qssglayerrenderdata.cpp.

References dpr(), and viewport.

Referenced by QSSGLayerRenderData::prepareForRender().

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

◆ textureDimensions()

QSize QSSGLayerRenderPreparationResult::textureDimensions ( ) const

Definition at line 2659 of file qssglayerrenderdata.cpp.

References QSSGRendererUtil::nextMultipleOf4(), QRectF::size(), and viewport.

+ Here is the call graph for this function:

Member Data Documentation

◆ flags

◆ layer

QSSGRenderLayer* QSSGLayerRenderPreparationResult::layer = nullptr

Definition at line 134 of file qssglayerrenderdata_p.h.

Referenced by isNull().

◆ viewport

QRectF QSSGLayerRenderPreparationResult::viewport

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