tests/manual/buffercapture-qml/ComputeFrameGraph.qml
raw| 1 | // Copyright (C) 2017 Juan José Casafranca. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | import Qt3D.Core 2.0 |
| 5 | import Qt3D.Render 2.9 |
| 6 | |
| 7 | Viewport { |
| 8 | RenderSurfaceSelector { |
| 9 | id: surfaceSelector |
| 10 | |
| 11 | // Compute Pass |
| 12 | DispatchCompute { |
| 13 | workGroupX: 50; workGroupY: 1; workGroupZ: 1 |
| 14 | BufferCapture { |
| 15 | TechniqueFilter { |
| 16 | matchAll: [ |
| 17 | FilterKey { name: "type"; value: "compute"} |
| 18 | ] |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | NoDraw { } |
| 24 | } |
| 25 | } |
| 26 | |
| 27 |