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
QSGBatchRenderer::Element Struct Reference

#include <qsgbatchrenderer_p.h>

+ Inheritance diagram for QSGBatchRenderer::Element:
+ Collaboration diagram for QSGBatchRenderer::Element:

Public Member Functions

 Element ()
 
void setNode (QSGGeometryNode *n)
 
void ensureBoundsValid ()
 
void computeBounds ()
 

Public Attributes

QSGGeometryNodenode = nullptr
 
Batchbatch = nullptr
 
ElementnextInBatch = nullptr
 
Noderoot = nullptr
 
Rect bounds
 
int order = 0
 
QRhiShaderResourceBindingssrb = nullptr
 
QRhiGraphicsPipelineps = nullptr
 
QRhiGraphicsPipelinedepthPostPassPs = nullptr
 
uint boundsComputed: 1
 
uint boundsOutsideFloatRange: 1
 
uint translateOnlyToRoot: 1
 
uint removed: 1
 
uint orphaned: 1
 
uint isRenderNode: 1
 
uint isMaterialBlended: 1
 

Detailed Description

Definition at line 270 of file qsgbatchrenderer_p.h.

Constructor & Destructor Documentation

◆ Element()

QSGBatchRenderer::Element::Element ( )
inline

Definition at line 271 of file qsgbatchrenderer_p.h.

Member Function Documentation

◆ computeBounds()

void QSGBatchRenderer::Element::computeBounds ( )

Definition at line 660 of file qsgbatchrenderer.cpp.

References bounds, boundsComputed, boundsOutsideFloatRange, QSGBatchRenderer::Rect::br, QSGBasicGeometryNode::geometry(), i, QSGBatchRenderer::Rect::isOutsideFloatRange(), QSGBatchRenderer::Rect::map(), QSGBasicGeometryNode::matrix(), node, Q_ASSERT, QSGBatchRenderer::qsg_positionAttribute(), qt_is_finite(), QSGBatchRenderer::Rect::set(), QSGBatchRenderer::Rect::tl, QSGBatchRenderer::Pt::x, and QSGBatchRenderer::Pt::y.

Referenced by ensureBoundsValid().

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

◆ ensureBoundsValid()

void QSGBatchRenderer::Element::ensureBoundsValid ( )
inline

Definition at line 287 of file qsgbatchrenderer_p.h.

References boundsComputed, and computeBounds().

+ Here is the call graph for this function:

◆ setNode()

void QSGBatchRenderer::Element::setNode ( QSGGeometryNode * n)
inline

Definition at line 282 of file qsgbatchrenderer_p.h.

References QSGBatchRenderer::hasMaterialWithBlending(), isMaterialBlended, and node.

+ Here is the call graph for this function:

Member Data Documentation

◆ batch

◆ bounds

Rect QSGBatchRenderer::Element::bounds

Definition at line 298 of file qsgbatchrenderer_p.h.

Referenced by computeBounds().

◆ boundsComputed

uint QSGBatchRenderer::Element::boundsComputed

◆ boundsOutsideFloatRange

uint QSGBatchRenderer::Element::boundsOutsideFloatRange

Definition at line 306 of file qsgbatchrenderer_p.h.

Referenced by computeBounds(), and QSGBatchRenderer::Batch::isSafeToBatch().

◆ depthPostPassPs

QRhiGraphicsPipeline* QSGBatchRenderer::Element::depthPostPassPs = nullptr

Definition at line 303 of file qsgbatchrenderer_p.h.

◆ isMaterialBlended

uint QSGBatchRenderer::Element::isMaterialBlended

Definition at line 311 of file qsgbatchrenderer_p.h.

Referenced by QSGBatchRenderer::Renderer::nodeChanged(), and setNode().

◆ isRenderNode

uint QSGBatchRenderer::Element::isRenderNode

◆ nextInBatch

◆ node

◆ order

int QSGBatchRenderer::Element::order = 0

◆ orphaned

uint QSGBatchRenderer::Element::orphaned

◆ ps

QRhiGraphicsPipeline* QSGBatchRenderer::Element::ps = nullptr

Definition at line 302 of file qsgbatchrenderer_p.h.

◆ removed

◆ root

Node* QSGBatchRenderer::Element::root = nullptr

Definition at line 296 of file qsgbatchrenderer_p.h.

Referenced by QSGBatchRenderer::Updater::visitGeometryNode().

◆ srb

QRhiShaderResourceBindings* QSGBatchRenderer::Element::srb = nullptr

Definition at line 301 of file qsgbatchrenderer_p.h.

◆ translateOnlyToRoot

uint QSGBatchRenderer::Element::translateOnlyToRoot

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