이 페이지에서

ComputeCommand QML Type

GPU의 컴퓨트 셰이더에 작업을 할당하는 컴포넌트입니다. 더 보기...

Import Statement: import Qt3D.Render 2.12
In C++: QComputeCommand
Inherits:

Component3D

Status: Deprecated

이 유형은 더 이상 사용되지 않습니다. 새로운 코드에서는 이 유형을 사용하지 않는 것을 강력히 권장합니다.

속성

상세 설명

ComputeCommand는 컴퓨트 셰이더에 작업을 전달하는 데 사용됩니다. 컴퓨트 셰이더는 ComputeCommand가 추가된 엔티티의 Material 컴포넌트에서 지정됩니다. workGroupX, workGroupY 및 workGroupZ 속성은 컴퓨트 셰이더 호출 시의 워크그룹 크기를 지정합니다. 명령을 실제로 발행하려면 FrameGraph에 DispatchCompute 노드가 존재해야 합니다. 컴퓨트 명령의 실행 동작은 run type 속성을 통해 제어할 수 있습니다.

참고: 렌더링 정책이 ` RenderSettings.OnDemand`로 설정되어있고 , 실행 유형이 `Continuous`로 설정되어 있으며, 씬에 변경 사항이 없는경우 ComputeCommand는 반복적으로 호출되지 않습니다. 씬에 새로운 프레임 렌더링을 유발하는 다른 변경 사항이 없는 경우 ComputeCommand가 반복적으로 호출되려면 ` RenderSettings.Always` 렌더링 정책이 설정되어 있어야 합니다.

속성 설명서

runType : enumeration

컴퓨트 명령을 매 프레임마다 수행할지, 아니면 수동으로 실행할지 지정합니다.

상수설명
ComputeCommand.Continuous컴퓨트 명령이 매 프레임마다 실행됩니다. 이것이 기본값입니다.
ComputeCommand.ManualComputeCommand는 지정된 프레임 수만큼 실행된 후, 컴포넌트가 자동으로 비활성화됩니다.

workGroupX : int

X 워크그룹의 크기를 지정합니다.

workGroupY : int

Y 작업 그룹의 크기를 지정합니다.

workGroupZ : int

Z 작업 그룹의 크기를 지정합니다.

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