diff options
author | Laszlo Agocs <[email protected]> | 2019-09-26 09:37:49 +0200 |
---|---|---|
committer | Laszlo Agocs <[email protected]> | 2019-09-26 17:02:12 +0200 |
commit | 22d22eb2824fb06f69f87bda27b1cfdf45efbc1f (patch) | |
tree | 50b6c23af4266d259ff6ad14c8dbfe8f357c905d /tests/manual/rhi/computebuffer/computebuffer.cpp | |
parent | 30e27328e3d6446a343107c96f41324197ed7ef1 (diff) |
rhi: Add a --transparent option to manual tests
This will also cause clearing to 0,0,0,0.
Essential in order to allow fast testing of window transparency
issues in combination with QRhi and the various backends.
Change-Id: Iee2763c1d06f1d3e5d59a9142abaf30fab1dc543
Reviewed-by: Christian Strømme <[email protected]>
Diffstat (limited to 'tests/manual/rhi/computebuffer/computebuffer.cpp')
-rw-r--r-- | tests/manual/rhi/computebuffer/computebuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/rhi/computebuffer/computebuffer.cpp b/tests/manual/rhi/computebuffer/computebuffer.cpp index 2a3e0b92b5a..c991a114382 100644 --- a/tests/manual/rhi/computebuffer/computebuffer.cpp +++ b/tests/manual/rhi/computebuffer/computebuffer.cpp @@ -195,7 +195,7 @@ void Window::customRender() cb->endComputePass(); // graphics pass - cb->beginPass(m_sc->currentFrameRenderTarget(), QColor::fromRgbF(0.4f, 0.7f, 0.0f, 1.0f), { 1.0f, 0 }); + cb->beginPass(m_sc->currentFrameRenderTarget(), m_clearColor, { 1.0f, 0 }); cb->setGraphicsPipeline(d.graphicsPipeline); cb->setViewport({ 0, 0, float(outputSizeInPixels.width()), float(outputSizeInPixels.height()) }); QRhiCommandBuffer::VertexInput vbufBinding(d.sbuf, 0); |