![]() |
Qt 6.x
The Qt SDK
|
#include <qssgdebugdrawsystem_p.h>
Public Member Functions | |
QSSGDebugDrawSystem () | |
~QSSGDebugDrawSystem () | |
bool | hasContent () const |
void | drawLine (const QVector3D &startPoint, const QVector3D &endPoint, const QColor &color, bool isPersistent=false) |
void | drawBounds (const QSSGBounds3 &bounds, const QColor &color, bool isPersistent=false) |
void | drawPoint (const QVector3D &vertex, const QColor &color, bool isPersistent=false) |
void | prepareGeometry (QSSGRhiContext *rhiCtx, QRhiResourceUpdateBatch *rub) |
void | recordRenderDebugObjects (QSSGRhiContext *rhiCtx, QSSGRhiGraphicsPipelineState *ps, QRhiShaderResourceBindings *srb, QRhiRenderPassDescriptor *rpDesc) |
Definition at line 26 of file qssgdebugdrawsystem_p.h.
QT_BEGIN_NAMESPACE QSSGDebugDrawSystem::QSSGDebugDrawSystem | ( | ) |
Definition at line 8 of file qssgdebugdrawsystem.cpp.
QSSGDebugDrawSystem::~QSSGDebugDrawSystem | ( | ) |
Definition at line 13 of file qssgdebugdrawsystem.cpp.
void QSSGDebugDrawSystem::drawBounds | ( | const QSSGBounds3 & | bounds, |
const QColor & | color, | ||
bool | isPersistent = false |
||
) |
Definition at line 35 of file qssgdebugdrawsystem.cpp.
void QSSGDebugDrawSystem::drawLine | ( | const QVector3D & | startPoint, |
const QVector3D & | endPoint, | ||
const QColor & | color, | ||
bool | isPersistent = false |
||
) |
Definition at line 23 of file qssgdebugdrawsystem.cpp.
References line.
void QSSGDebugDrawSystem::drawPoint | ( | const QVector3D & | vertex, |
const QColor & | color, | ||
bool | isPersistent = false |
||
) |
Definition at line 46 of file qssgdebugdrawsystem.cpp.
bool QSSGDebugDrawSystem::hasContent | ( | ) | const |
Definition at line 18 of file qssgdebugdrawsystem.cpp.
void QSSGDebugDrawSystem::prepareGeometry | ( | QSSGRhiContext * | rhiCtx, |
QRhiResourceUpdateBatch * | rub | ||
) |
Definition at line 56 of file qssgdebugdrawsystem.cpp.
References QByteArray::constData(), QList< T >::constData(), QList< T >::count(), QRhiBuffer::Immutable, QRhiBuffer::IndexBuffer, QRhiCommandBuffer::IndexUInt32, QList< T >::isEmpty(), line, QByteArrayLiteral, QByteArray::size(), QRhiResourceUpdateBatch::uploadStaticBuffer(), and QRhiBuffer::VertexBuffer.
void QSSGDebugDrawSystem::recordRenderDebugObjects | ( | QSSGRhiContext * | rhiCtx, |
QSSGRhiGraphicsPipelineState * | ps, | ||
QRhiShaderResourceBindings * | srb, | ||
QRhiRenderPassDescriptor * | rpDesc | ||
) |
Definition at line 120 of file qssgdebugdrawsystem.cpp.
References cb, QSSGRhiInputAssemblerState::ColorSemantic, QSSGRhiContext::commandBuffer(), QSSGGraphicsPipelineStateKey::create(), QSSGRhiGraphicsPipelineState::cullMode, QSSGRhiGraphicsPipelineState::depthTestEnable, QSSGRhiGraphicsPipelineState::depthWriteEnable, QRhiVertexInputAttribute::Float3, QSSGRhiGraphicsPipelineState::ia, QSSGRhiInputAssemblerState::inputLayout, QSSGRhiInputAssemblerState::inputs, QRhiGraphicsPipeline::Lines, QRhiGraphicsPipeline::None, QSSGRhiContext::pipeline(), QRhiGraphicsPipeline::Points, QSSGRhiInputAssemblerState::PositionSemantic, QRhiVertexInputLayout::setAttributes(), QRhiVertexInputLayout::setBindings(), QSSGRhiInputAssemblerState::topology, and QSSGRhiGraphicsPipelineState::viewport.