QDispatchCompute Class

class Qt3DRender::QDispatchCompute

FrameGraph 노드를 사용하여 GPU에서 컴퓨팅 셰이더에 대한 작업을 발행합니다. 더 보기...

Header: #include <QDispatchCompute>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: DispatchCompute
상속합니다: Qt3DRender::QFrameGraphNode
상태: Deprecated

속성

공용 기능

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)

신호

상세 설명

Qt3DRender::QDispatchCompute 은 컴퓨팅 셰이더가 GPU에서 실행되도록 작업을 발행할 수 있도록 합니다. workGroupX , workGroupYworkGroupZ 속성은 계산 셰이더 호출을 위한 작업 그룹 크기를 지정합니다. 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 로 인스턴스를 생성합니다.

© 2025 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.