Qt3DRender.QComputeCommand¶
QComponent
to issue work for the compute shader on GPU. More…
Synopsis¶
Functions¶
def
workGroupX
()def
workGroupY
()def
workGroupZ
()
Slots¶
def
setWorkGroupX
(workGroupX)def
setWorkGroupY
(workGroupY)def
setWorkGroupZ
(workGroupZ)
Signals¶
def
workGroupXChanged
()def
workGroupYChanged
()def
workGroupZChanged
()
Detailed Description¶
A
QComputeCommand
is used to issue work for the compute shader. The compute shader is specified in theQMaterial
component of the same entity theQComputeCommand
is added to. TheworkGroupX
,workGroupY
andworkGroupZ
properties specify the work group sizes for the compute shader invocation.QDispatchCompute
node needs to be present in the FrameGraph to actually issue the commands.Note
If the rendering policy is set to
OnDemand
and there are no changes to the scene, the ComputeCommand will not be invoked repeatedly. TheAlways
render policy must be set for the ComputeCommand to be repeatedly invoked if there are no other changes to the scene that triggers rendering a new frame.
-
class
PySide2.Qt3DRender.Qt3DRender.
QComputeCommand
([parent=None])¶ - param parent
QNode
The constructor creates a new
QComputeCommand
instance with the specifiedparent
.
-
PySide2.Qt3DRender.Qt3DRender.QComputeCommand.
setWorkGroupX
(workGroupX)¶ - Parameters
workGroupX –
int
Sets the workgroup for the first dimension to
workGroupX
.See also
workGroupX()
-
PySide2.Qt3DRender.Qt3DRender.QComputeCommand.
setWorkGroupY
(workGroupY)¶ - Parameters
workGroupY –
int
Sets the workgroup for the second dimension to
workGroupY
.See also
workGroupY()
-
PySide2.Qt3DRender.Qt3DRender.QComputeCommand.
setWorkGroupZ
(workGroupZ)¶ - Parameters
workGroupZ –
int
Sets the workgroup for the third dimension to
workGroupZ
.See also
workGroupZ()
-
PySide2.Qt3DRender.Qt3DRender.QComputeCommand.
workGroupX
()¶ - Return type
int
See also
setWorkGroupX()
-
PySide2.Qt3DRender.Qt3DRender.QComputeCommand.
workGroupXChanged
()¶
-
PySide2.Qt3DRender.Qt3DRender.QComputeCommand.
workGroupY
()¶ - Return type
int
See also
setWorkGroupY()
-
PySide2.Qt3DRender.Qt3DRender.QComputeCommand.
workGroupYChanged
()¶
-
PySide2.Qt3DRender.Qt3DRender.QComputeCommand.
workGroupZ
()¶ - Return type
int
See also
setWorkGroupZ()
-
PySide2.Qt3DRender.Qt3DRender.QComputeCommand.
workGroupZChanged
()¶
© 2018 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.