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
qssgrhiparticles.cpp File Reference

(d83351cf62977f1050c065746e9789935f7e404e)

#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 324 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 196 of file qssgrhiparticles.cpp.

References begin(), QSSGRhiSortData::d, dir, QVector3D::dotProduct(), QSSGRenderNode::globalTransform, i, QSSGRhiSortData::indexOrOffset, QMatrix4x4::inverted(), j, line, QString::normalized(), qMin(), 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