summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/compute-particles
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-10-21 11:27:32 +0200
committerPaul Lemire <paul.lemire@kdab.com>2017-01-25 07:32:44 +0000
commit4678ef597afb1f4225f821b04f91f0d14171af3a (patch)
tree37655a311d1695102c6138f114b172108eebd0cf /examples/qt3d/compute-particles
parentfd21c45612b30e4256c446e5adae86a59bdd4c21 (diff)
ComputeParticles: use memory barrier
Make the synchronization explicit rather than relying on luck. Change-Id: I4291fd70701e784c70b3ad6d178d6fc9cc4ce0a5 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'examples/qt3d/compute-particles')
-rw-r--r--examples/qt3d/compute-particles/ComputeFrameGraph.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/qt3d/compute-particles/ComputeFrameGraph.qml b/examples/qt3d/compute-particles/ComputeFrameGraph.qml
index ffdeb7567..902d8ef74 100644
--- a/examples/qt3d/compute-particles/ComputeFrameGraph.qml
+++ b/examples/qt3d/compute-particles/ComputeFrameGraph.qml
@@ -77,6 +77,7 @@ Viewport {
CameraSelector {
id: selector
TechniqueFilter {
+ MemoryBarrier { barrierTypes: MemoryBarrier.VertexAttributeArrayBarrier }
matchAll: [
FilterKey { name: "type"; value: "draw"}
]