QSGVulkanTexture Struct
struct QNativeInterface::QSGVulkanTextureVulkan 이미지 객체에 대한 액세스를 제공하고 이를 채택할 수 있도록 합니다. 더 보기...
Header: | #include <QSGTexture> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
qmake: | QT += quick |
이후: | Qt 6.0 |
- 상속된 멤버를 포함한 모든 멤버 목록
- QSGVulkanTexture는 네이티브 인터페이스의 일부입니다.
공용 함수
virtual VkImage | nativeImage() const = 0 |
virtual VkImageLayout | nativeImageLayout() const = 0 |
정적 공용 멤버
(since 6.0) QSGTexture * | fromNative(VkImage image, VkImageLayout layout, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {}) |
멤버 함수 문서
[static, since 6.0]
QSGTexture *QSGVulkanTexture::fromNative(VkImage image, VkImageLayout layout, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {})
window 에 대해 기존 Vulkan image 객체를 래핑하는 새로운 QSGTexture 을 생성합니다.
네이티브 객체는 결과물인 QSGTexture 에 의해 래핑되지만 소유되지는 않습니다. 함수 호출자는 반환된 QSGTexture 을 삭제할 책임이 있지만, 기본 네이티브 오브젝트는 파괴되지 않습니다.
이 함수는 현재 2D RGBA 텍스처에만 적합합니다.
경고: 씬 그래프가 아직 초기화되지 않은 경우 이 함수는 null을 반환합니다.
layout 는 이미지의 현재 레이아웃을 지정해야 합니다.
텍스처 속성을 사용자 지정하려면 options 을 사용합니다. 여기서는 TextureHasAlphaChannel과 TextureHasMipmaps만 고려됩니다.
size 픽셀 단위로 크기를 지정합니다.
참고: 이 함수는 씬 그래프 렌더링 스레드에서 호출해야 합니다.
이 함수는 Qt 6.0에 도입되었습니다.
QQuickWindow::sceneGraphInitialized(), QSGTexture, 씬 그래프 - 메탈 텍스처 임포트 및 씬 그래프 - 벌칸 텍스처 임포트도참조하십시오 .
[pure virtual]
VkImage QSGVulkanTexture::nativeImage() const
VkImage 핸들을 반환합니다.
[pure virtual]
VkImageLayout QSGVulkanTexture::nativeImageLayout() const
이미지 레이아웃을 반환합니다.
© 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.