Qt3DRender::QDispatchCompute Class
class Qt3DRender::QDispatchComputeGPU의 컴퓨트 셰이더에 작업을 전달하는 FrameGraph 노드. 더 보기...
| 헤더: | #include <qdispatchcompute.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML에서: | DispatchCompute |
| 상속: | Qt3DRender::QFrameGraphNode |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 말 것을 강력히 권장합니다.
속성
- workGroupX : int
- workGroupY : int
- workGroupZ : int
공개 함수
| QDispatchCompute(Qt3DCore::QNode *parent = nullptr) | |
| int | workGroupX() const |
| int | workGroupY() const |
| int | workGroupZ() const |
공개 슬롯
| void | setWorkGroupX(int workGroupX) |
| void | setWorkGroupY(int workGroupY) |
| void | setWorkGroupZ(int workGroupZ) |
신호
| void | workGroupXChanged() |
| void | workGroupYChanged() |
| void | workGroupZChanged() |
상세 설명
Qt3DRender::QDispatchCompute 를 사용하면 GPU에서 컴퓨트 셰이더가 실행할 작업을 발행할 수 있습니다. workGroupX, workGroupY 및 workGroupZ 속성은 컴퓨트 셰이더 호출에 대한 워크그룹 크기를 지정합니다. QComputeCommand 컴포넌트를 엔티티에 추가해야만 Qt3D가 컴퓨트 호출을 위해 해당 엔티티에서 머티리얼과 지오메트리를 선택하도록 지시할 수 있습니다. 셰이더 호출에 사용되는 워크그룹 크기는 QDispatchCompute 및 QComputeCommand 에서 지정된 워크그룹 크기 중 최대값이 됩니다.
속성 설명서
workGroupX : int
X 워크그룹을 지정합니다.
액세스 기능:
| int | workGroupX() const |
| void | setWorkGroupX(int workGroupX) |
알림 신호:
| void | workGroupXChanged() |
workGroupY : int
Y 작업 그룹을 지정합니다.
액세스 기능:
| int | workGroupY() const |
| void | setWorkGroupY(int workGroupY) |
알림 신호:
| void | workGroupYChanged() |
workGroupZ : int
Z 작업 그룹을 지정합니다.
액세스 기능:
| int | workGroupZ() const |
| void | setWorkGroupZ(int workGroupZ) |
알림 신호:
| void | workGroupZChanged() |
멤버 함수 설명서
[explicit] QDispatchCompute::QDispatchCompute(Qt3DCore::QNode *parent = nullptr)
이 생성자는 지정된 ` parent`을 사용하여 인스턴스를 생성합니다.
© 2026 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.