![]() |
Qt 6.x
The Qt SDK
|
#include <qssgrhiquadrenderer_p.h>
Collaboration diagram for QSSGRhiQuadRenderer:Public Types | |
| enum | Flag { UvCoords = 0x01 , DepthTest = 0x02 , DepthWrite = 0x04 , PremulBlend = 0x08 , RenderBehind = 0x10 } |
Public Member Functions | |
| void | prepareQuad (QSSGRhiContext *rhiCtx, QRhiResourceUpdateBatch *maybeRub) |
| void | recordRenderQuad (QSSGRhiContext *rhiCtx, QSSGRhiGraphicsPipelineState *ps, QRhiShaderResourceBindings *srb, QRhiRenderPassDescriptor *rpDesc, Flags flags) |
| void | recordRenderQuadPass (QSSGRhiContext *rhiCtx, QSSGRhiGraphicsPipelineState *ps, QRhiShaderResourceBindings *srb, QRhiTextureRenderTarget *rt, Flags flags) |
Definition at line 24 of file qssgrhiquadrenderer_p.h.
| Enumerator | |
|---|---|
| UvCoords | |
| DepthTest | |
| DepthWrite | |
| PremulBlend | |
| RenderBehind | |
Definition at line 31 of file qssgrhiquadrenderer_p.h.
| void QSSGRhiQuadRenderer::prepareQuad | ( | QSSGRhiContext * | rhiCtx, |
| QRhiResourceUpdateBatch * | maybeRub | ||
| ) |
Definition at line 76 of file qssgrhiquadrenderer.cpp.
References QSSGRhiContext::commandBuffer(), QRhi::nextResourceUpdateBatch(), QRhiCommandBuffer::resourceUpdate(), and QSSGRhiContext::rhi().
Here is the call graph for this function:| void QSSGRhiQuadRenderer::recordRenderQuad | ( | QSSGRhiContext * | rhiCtx, |
| QSSGRhiGraphicsPipelineState * | ps, | ||
| QRhiShaderResourceBindings * | srb, | ||
| QRhiRenderPassDescriptor * | rpDesc, | ||
| Flags | flags | ||
| ) |
Definition at line 83 of file qssgrhiquadrenderer.cpp.
References QSSGRhiGraphicsPipelineState::blendEnable, cb, QSSGRhiContext::commandBuffer(), QSSGGraphicsPipelineStateKey::create(), QSSGRhiGraphicsPipelineState::cullMode, DepthTest, QSSGRhiGraphicsPipelineState::depthTestEnable, DepthWrite, QSSGRhiGraphicsPipelineState::depthWriteEnable, QRhiGraphicsPipeline::TargetBlend::dstAlpha, QRhiGraphicsPipeline::TargetBlend::dstColor, QRhiVertexInputAttribute::Float2, QRhiVertexInputAttribute::Float3, QSSGRhiGraphicsPipelineState::ia, QSSGRhiInputAssemblerState::inputLayout, QSSGRhiInputAssemblerState::inputs, QRhiGraphicsPipeline::None, QRhiGraphicsPipeline::One, QRhiGraphicsPipeline::OneMinusSrcAlpha, QSSGRhiContext::pipeline(), QSSGRhiInputAssemblerState::PositionSemantic, PremulBlend, Q_QUICK3D_PROFILE_END_WITH_STRING, Q_QUICK3D_PROFILE_START, QByteArrayLiteral, QSSGRHICTX_STAT, RenderBehind, QRhiVertexInputLayout::setAttributes(), QRhiVertexInputLayout::setBindings(), QRhiGraphicsPipeline::SrcAlpha, QRhiGraphicsPipeline::TargetBlend::srcAlpha, QRhiGraphicsPipeline::TargetBlend::srcColor, QSSGRhiGraphicsPipelineState::targetBlend, QSSGRhiInputAssemblerState::TexCoord0Semantic, QSSGRhiInputAssemblerState::topology, QRhiGraphicsPipeline::Triangles, UvCoords, and QSSGRhiGraphicsPipelineState::viewport.
Referenced by recordRenderQuadPass().
Here is the call graph for this function:
Here is the caller graph for this function:| void QSSGRhiQuadRenderer::recordRenderQuadPass | ( | QSSGRhiContext * | rhiCtx, |
| QSSGRhiGraphicsPipelineState * | ps, | ||
| QRhiShaderResourceBindings * | srb, | ||
| QRhiTextureRenderTarget * | rt, | ||
| Flags | flags | ||
| ) |
Definition at line 138 of file qssgrhiquadrenderer.cpp.
References Qt::black, cb, QSSGRhiContext::commandBuffer(), QSSGRhiContext::commonPassFlags(), QSSGRHICTX_STAT, recordRenderQuad(), and QRhiRenderTarget::renderPassDescriptor().
Here is the call graph for this function: