Class to emplace a memory barrier More...
|qmake:||QT += 3drender|
|QMemoryBarrier(Qt3DCore::QNode *parent = nullptr)|
- 1 public function inherited from Qt3DRender::QFrameGraphNode
- 11 public functions inherited from Qt3DCore::QNode
- 32 public functions inherited from QObject
|QMemoryBarrier(QMemoryBarrierPrivate &dd, Qt3DCore::QNode *parent = nullptr)|
- 1 protected function inherited from Qt3DRender::QFrameGraphNode
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Additional Inherited Members
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
- 11 static public members inherited from QObject
Class to emplace a memory barrier
A Qt3DRender::QMemoryBarrier FrameGraph node is used to emplace a specific memory barrier at a specific time of the rendering. This is required to properly synchronize drawing and compute commands on the GPU.
The barrier defines the ordering of memory operations issued by a prior command. This means that if command1 is manipulating a buffer that is to be used as a vertex attribute buffer in a following command2, then the memory barrier should be placed after command1 and setting the appropriate barrier type for vertex attribute buffer.
When a QMemoryBarrier node is found in a FrameGraph branch, the barrier will be enforced prior to any draw or compute command even if these are defined deeper in the branch.
For OpenGL rendering, this page gives more info about the Memory Model
Member Type Documentation
This enum type describes types of buffer to be cleared.
The Operations type is a typedef for QFlags<Operation>. It stores an OR combination of Operation values.
Member Function Documentation
Default constructs an instance of QMemoryBarrier.
[protected] QMemoryBarrier::QMemoryBarrier(QMemoryBarrierPrivate &dd, Qt3DCore::QNode *parent = nullptr)
Destroys the instance of QMemoryBarrier.
[slot] void QMemoryBarrier::setWaitOperations(QMemoryBarrier::Operations operations)
See also waitOperations().
Operations QMemoryBarrier::waitOperations() const
See also setWaitOperations().
[signal] void QMemoryBarrier::waitOperationsChanged(QMemoryBarrier::Operations barrierTypes)
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.