QSetFence Class
class Qt3DRender::QSetFenceFrameGraphNode 그래픽 명령 스트림에 펜스를 삽입하는 데 사용됩니다. 더 보기...
헤더: | #include <QSetFence> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
상속합니다: | Qt3DRender::QFrameGraphNode |
상태: | Deprecated |
속성
- handle : const QVariant
- handleType : const HandleType
공공 기능
QVariant | handle() const |
Qt3DRender::QSetFence::HandleType | handleType() const |
신호
void | handleChanged(QVariant handle) |
void | handleTypeChanged(Qt3DRender::QSetFence::HandleType handleType) |
상세 설명
펜스를 사용하면 GPU와 CPU 워크로드를 동기화할 수 있습니다. GPU 명령은 일반적으로 비블록킹입니다. 명령이 실행되면 명령은 명령 버퍼에 삽입되어 나중에 GPU에서 읽게 됩니다. 어떤 경우에는 하드웨어에서 명령이 실행되었다고 확신할 때만 처리를 계속하거나 특정 명령을 실행하고 싶을 수 있습니다. 펜스는 이를 위한 방법입니다. 이는 Qt3D와 함께 타사 엔진을 사용할 때 특히 중요한데, Qt3D는 다른 엔진 명령이 리소스 수정을 완료한 것을 알 때만 공유 리소스에 액세스해야 합니다.
QSetFence는 명령 스트림에 펜스를 삽입하는 프레임그래프 노드입니다. 그런 다음 QWaitFence 와 함께 사용하거나 기본 핸들을 추출하여 사용할 수 있습니다.
렌더러가 기본 펜스 리소스를 생성하면 핸들 속성이 업데이트됩니다. 핸들은 시그널링되지 않은 상태로 유지되는 한 유효합니다. 시그널링된 상태에 도달하면 소멸되고 새 핸들이 생성됩니다. 즉, 펜스가 신호를 받는 데 걸리는 시간에 따라 동일한 핸들을 여러 프레임에 걸쳐 사용할 수 있습니다.
속성 문서
[read-only]
handle : const QVariant
QVariant 로 감싼 기본 펜스 핸들을 고정합니다.
기능에 액세스합니다:
QVariant | handle() const |
알림 신호:
void | handleChanged(QVariant handle) |
[read-only]
handleType : const HandleType
사용 중인 핸들 유형을 지정합니다. 현재 OpenGL Fence ID만 지원됩니다.
액세스 함수:
Qt3DRender::QSetFence::HandleType | handleType() const |
알림 신호:
void | handleTypeChanged(Qt3DRender::QSetFence::HandleType handleType) |
© 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.