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_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/qtquick3druntimerenderglobal.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 const QSSGRenderCameraList &cameras);
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 int viewCount,
54 QSSGRenderCamera *alteredCamera = nullptr,
56 QSSGReflectionMapEntry *entry = nullptr);
57 static void rhiRenderRenderable(QSSGRhiContext *rhiCtx,
58 QSSGParticlesRenderable &renderable,
59 bool *needsSetViewport,
62 static void prepareParticlesForModel(QSSGRhiShaderPipeline &shaderPipeline,
63 QSSGRhiContext *rhiCtx,
65 const QSSGRenderModel *model);
66};
67
69
70#endif
\inmodule QtGui
Definition qrhi.h:1142
\inmodule QtGui
Definition qrhi.h:895
static void updateUniformsForParticleModel(QSSGRhiShaderPipeline &shaderPipeline, char *ubufData, const QSSGRenderModel *model, quint32 offset)
static void rhiPrepareRenderable(QSSGRhiShaderPipeline &shaderPipeline, QSSGPassKey passKey, QSSGRhiContext *rhiCtx, QSSGRhiGraphicsPipelineState *ps, QSSGParticlesRenderable &renderable, const QSSGLayerRenderData &inData, QRhiRenderPassDescriptor *renderPassDescriptor, int samples, int viewCount, QSSGRenderCamera *alteredCamera=nullptr, QSSGRenderTextureCubeFace cubeFace=QSSGRenderTextureCubeFaceNone, QSSGReflectionMapEntry *entry=nullptr)
static void updateUniformsForParticles(QSSGRhiShaderPipeline &shaderPipeline, QSSGRhiContext *rhiCtx, char *ubufData, QSSGParticlesRenderable &renderable, const QSSGRenderCameraList &cameras)
static void rhiRenderRenderable(QSSGRhiContext *rhiCtx, QSSGParticlesRenderable &renderable, bool *needsSetViewport, QSSGRenderTextureCubeFace cubeFace, const QSSGRhiGraphicsPipelineState &state)
static void prepareParticlesForModel(QSSGRhiShaderPipeline &shaderPipeline, QSSGRhiContext *rhiCtx, QSSGRhiShaderResourceBindingList &bindings, const QSSGRenderModel *model)
\inmodule QtQuick3D
else opt state
[0]
Combined button and popup list for selecting options.
GLsizei samples
GLenum GLuint GLintptr offset
GLuint entry
QSSGRenderTextureCubeFace
constexpr QSSGRenderTextureCubeFace QSSGRenderTextureCubeFaceNone
unsigned int quint32
Definition qtypes.h:50
QSqlQueryModel * model
[16]