Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qssgrhiparticles.cpp File Reference
#include "qssgrhiparticles_p.h"
#include "qssgrhicontext_p.h"
#include <qfloat16.h>
#include <QtQuick3DUtils/private/qssgutils_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrenderer_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrendercamera_p.h>
#include <QtQuick3DRuntimeRender/private/qssglayerrenderdata_p.h>
+ Include dependency graph for qssgrhiparticles.cpp:

Go to the source code of this file.

Classes

struct  ParticleLightData
 

Functions

static void fillTargetBlend (QRhiGraphicsPipeline::TargetBlend &targetBlend, QSSGRenderParticles::BlendMode mode)
 
static void sortParticles (QByteArray &result, QList< QSSGRhiSortData > &sortData, const QSSGParticleBuffer &buffer, const QSSGRenderParticles &particles, const QVector3D &cameraDirection, bool animatedParticles)
 
static QByteArray convertParticleData (QByteArray &dest, const QByteArray &data, bool convert)
 

Variables

static QT_BEGIN_NAMESPACE const QRhiShaderResourceBinding::StageFlags VISIBILITY_ALL
 

Function Documentation

◆ convertParticleData()

static QByteArray convertParticleData ( QByteArray dest,
const QByteArray data,
bool  convert 
)
static

Definition at line 313 of file qssgrhiparticles.cpp.

References convert(), QByteArray::data(), qFloatToFloat16(), QByteArray::resize(), and QByteArray::size().

Referenced by QSSGParticleRenderer::prepareParticlesForModel(), and QSSGParticleRenderer::rhiPrepareRenderable().

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

◆ fillTargetBlend()

◆ sortParticles()

static void sortParticles ( QByteArray result,
QList< QSSGRhiSortData > &  sortData,
const QSSGParticleBuffer buffer,
const QSSGRenderParticles particles,
const QVector3D cameraDirection,
bool  animatedParticles 
)
static

Definition at line 185 of file qssgrhiparticles.cpp.

References QList< T >::begin(), begin(), QSSGRhiSortData::d, QList< T >::data(), dir, QVector3D::dotProduct(), QList< T >::end(), QList< T >::fill(), QSSGRenderNode::globalTransform, i, QSSGRhiSortData::indexOrOffset, QMatrix4x4::inverted(), j, line, QMatrix4x4::map(), QString::normalized(), pi, QSSGLineParticle::position, qMin(), QList< T >::resize(), and sp.

Referenced by QSSGParticleRenderer::rhiPrepareRenderable().

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

Variable Documentation

◆ VISIBILITY_ALL

QT_BEGIN_NAMESPACE const QRhiShaderResourceBinding::StageFlags VISIBILITY_ALL
static