Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qssgrhiparticles_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QSSG_RHI_PARTICLES_H
5#define QSSG_RHI_PARTICLES_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick3DRuntimeRender/private/qtquick3druntimerenderglobal_p.h>
19#include <QtQuick3DRuntimeRender/private/qssgrenderableobjects_p.h>
20#include <QtQuick3DRuntimeRender/private/qssgrenderparticles_p.h>
21#include <QtGui/QMatrix4x4>
22#include <QtGui/QMatrix3x3>
23
25
28struct QSSGRenderLayer;
29struct QSSGRenderLight;
30struct QSSGRenderCamera;
32class QRhiTexture;
33
35{
36public:
37 static void updateUniformsForParticles(QSSGRhiShaderPipeline &shaderPipeline,
38 QSSGRhiContext *rhiCtx,
39 char *ubufData,
40 QSSGParticlesRenderable &renderable,
41 QSSGRenderCamera &inCamera);
42 static void updateUniformsForParticleModel(QSSGRhiShaderPipeline &shaderPipeline,
43 char *ubufData,
45
46 static void rhiPrepareRenderable(QSSGRhiShaderPipeline &shaderPipeline, QSSGPassKey passKey,
47 QSSGRhiContext *rhiCtx,
49 QSSGParticlesRenderable &renderable,
50 const QSSGLayerRenderData &inData,
51 QRhiRenderPassDescriptor *renderPassDescriptor,
52 int samples,
53 QSSGRenderCamera *camera = nullptr,
54 int cubeFace = -1,
55 QSSGReflectionMapEntry *entry = nullptr);
56 static void rhiRenderRenderable(QSSGRhiContext *rhiCtx,
57 QSSGParticlesRenderable &renderable,
58 bool *needsSetViewport,
59 int cubeFace,
61 static void prepareParticlesForModel(QSSGRhiShaderPipeline &shaderPipeline,
62 QSSGRhiContext *rhiCtx,
64 const QSSGRenderModel *model);
65};
66
68
69#endif
\inmodule QtGui
Definition qrhi.h:1119
\inmodule QtGui
Definition qrhi.h:883
static void updateUniformsForParticles(QSSGRhiShaderPipeline &shaderPipeline, QSSGRhiContext *rhiCtx, char *ubufData, QSSGParticlesRenderable &renderable, QSSGRenderCamera &inCamera)
static void rhiRenderRenderable(QSSGRhiContext *rhiCtx, QSSGParticlesRenderable &renderable, bool *needsSetViewport, int cubeFace, const QSSGRhiGraphicsPipelineState &state)
static void updateUniformsForParticleModel(QSSGRhiShaderPipeline &shaderPipeline, char *ubufData, const QSSGRenderModel *model, quint32 offset)
static void prepareParticlesForModel(QSSGRhiShaderPipeline &shaderPipeline, QSSGRhiContext *rhiCtx, QSSGRhiShaderResourceBindingList &bindings, const QSSGRenderModel *model)
static void rhiPrepareRenderable(QSSGRhiShaderPipeline &shaderPipeline, QSSGPassKey passKey, QSSGRhiContext *rhiCtx, QSSGRhiGraphicsPipelineState *ps, QSSGParticlesRenderable &renderable, const QSSGLayerRenderData &inData, QRhiRenderPassDescriptor *renderPassDescriptor, int samples, QSSGRenderCamera *camera=nullptr, int cubeFace=-1, QSSGReflectionMapEntry *entry=nullptr)
QCamera * camera
Definition camera.cpp:19
else opt state
[0]
Combined button and popup list for selecting options.
GLsizei samples
GLenum GLuint GLintptr offset
GLuint entry
const void * QSSGPassKey
unsigned int quint32
Definition qtypes.h:45
QSqlQueryModel * model
[16]