FrameGraph node to issue work for the compute shader on GPU. 更多 …
def
workGroupX
()
def
workGroupY
()
def
workGroupZ
()
def
setWorkGroupX
(workGroupX)
def
setWorkGroupY
(workGroupY)
def
setWorkGroupZ
(workGroupZ)
def
workGroupXChanged
()
def
workGroupYChanged
()
def
workGroupZChanged
()
A
QDispatchComputeallows work to be issued for the compute shader to run on the GPU. TheworkGroupX,workGroupYandworkGroupZproperties specify the work group sizes for the compute shader invocation.QComputeCommandcomponents need to be added to entities to instruct Qt3D to select the materials and geometry from the entities for the compute invocation. The work group sizes for the shader invocation will be the maximum of the work group sizes specified inQDispatchComputeandQComputeCommand.
PySide2.Qt3DRender.Qt3DRender.
QDispatchCompute
(
[
parent=None
]
)
¶
- param parent
QNode
The constructor creates an instance with the specified
parent
.
PySide2.Qt3DRender.Qt3DRender.QDispatchCompute.
setWorkGroupX
(
workGroupX
)
¶
workGroupX
–
int
另请参阅
PySide2.Qt3DRender.Qt3DRender.QDispatchCompute.
setWorkGroupY
(
workGroupY
)
¶
workGroupY
–
int
另请参阅
PySide2.Qt3DRender.Qt3DRender.QDispatchCompute.
setWorkGroupZ
(
workGroupZ
)
¶
workGroupZ
–
int
另请参阅
PySide2.Qt3DRender.Qt3DRender.QDispatchCompute.
workGroupX
(
)
¶
int
另请参阅
PySide2.Qt3DRender.Qt3DRender.QDispatchCompute.
workGroupXChanged
(
)
¶
PySide2.Qt3DRender.Qt3DRender.QDispatchCompute.
workGroupY
(
)
¶
int
另请参阅
PySide2.Qt3DRender.Qt3DRender.QDispatchCompute.
workGroupYChanged
(
)
¶
PySide2.Qt3DRender.Qt3DRender.QDispatchCompute.
workGroupZ
(
)
¶
int
另请参阅
PySide2.Qt3DRender.Qt3DRender.QDispatchCompute.
workGroupZChanged
(
)
¶