ComputeCommand QML Type
GPU에서 컴퓨트 셰이더에 작업을 발행하는 컴포넌트입니다. 더 보기...
Import Statement: | import Qt3D.Render 2.8 |
In C++: | QComputeCommand |
Inherits: | |
Status: | Deprecated |
프로퍼티
- runType : enumeration
- workGroupX : int
- workGroupY : int
- workGroupZ : int
상세 설명
컴퓨트 커맨드는 컴퓨트 셰이더에 작업을 실행하는 데 사용됩니다. 컴퓨트 셰이더는 컴퓨트 커맨드가 추가된 것과 동일한 엔티티의 머티리얼 컴포넌트에 지정됩니다. workGroupX , workGroupY 및 workGroupZ 프로퍼티는 계산 셰이더 호출을 위한 작업 그룹 크기를 지정합니다. 실제로 명령을 실행하려면 DispatchCompute 노드가 프레임그래프에 있어야 합니다. 계산 명령의 실행 동작은 실행 유형 프로퍼티로 제어할 수 있습니다.
참고: 렌더링 정책이 RenderSettings.OnDemand로 설정되어 있고 실행 유형이 연속으로 설정되어 있으며 씬에 변경 사항이 없는 경우 ComputeCommand는 반복적으로 호출되지 않습니다. 새 프레임 렌더링을 트리거하는 장면에 다른 변경 사항이 없는 경우 ComputeCommand가 반복적으로 호출되도록 하려면 RenderSettings.Always 렌더링 정책을 설정해야 합니다.
속성 문서
runType : enumeration |
매 프레임마다 계산 명령을 수행할지 아니면 수동으로 트리거할지 여부를 지정합니다.
Constant | 설명 |
---|---|
ComputeCommand.Continuous | 매 프레임마다 계산 명령이 실행됩니다. 이것이 기본값입니다. |
ComputeCommand.Manual | ComputeCommand는 지정된 프레임 수 동안 실행된 후 컴포넌트가 자체적으로 비활성화됩니다. |
workGroupX : int |
X 작업그룹 크기를 지정합니다.
workGroupY : int |
Y 작업 그룹 크기를 지정합니다.
workGroupZ : int |
Z 작업 그룹 크기를 지정합니다.
© 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.