QNativeInterface::QSGVulkanTexture Struct
Vulkan 이미지 객체에 대한 액세스를 제공하고 이를 사용할 수 있게 합니다. 더 보기...
| 헤더: | #include <QSGTexture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| 다음부터: | Qt 6.0부터 |
- 상속된 멤버를 포함한 모든 멤버 목록
- QSGVulkanTexture는 Native Interfaces의 일부입니다.
공개 함수
| QSGVulkanTexture() | |
| QSGVulkanTexture(const QNativeInterface::QSGVulkanTexture &) | |
| QSGVulkanTexture(QNativeInterface::QSGVulkanTexture &&) | |
| virtual VkImage | nativeImage() const = 0 |
| virtual VkImageLayout | nativeImageLayout() const = 0 |
| QNativeInterface::QSGVulkanTexture & | operator=(QNativeInterface::QSGVulkanTexture &&) |
| QNativeInterface::QSGVulkanTexture & | operator=(const QNativeInterface::QSGVulkanTexture &) |
정적 공용 멤버
(since 6.0) QSGTexture * | fromNative(VkImage image, VkImageLayout layout, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {}) |
멤버 함수 설명
[constexpr noexcept default] QSGVulkanTexture::QSGVulkanTexture()
QSGVulkanTexture 의 인스턴스를 기본 생성합니다.
[delete] QSGVulkanTexture::QSGVulkanTexture(const QNativeInterface::QSGVulkanTexture &)
QSGVulkanTexture 의 인스턴스를 복사 생성합니다. 이 함수는 삭제되었습니다.
[delete] QSGVulkanTexture::QSGVulkanTexture(QNativeInterface::QSGVulkanTexture &&)
QSGVulkanTexture 의 인스턴스를 move-construct로 생성합니다. 이 함수는 삭제되었습니다.
[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, 씬 그래프 - Metal 텍스처 가져오기 및 씬 그래프 - Vulkan 텍스처 가져오기도참조하십시오 .
[pure virtual] VkImage QSGVulkanTexture::nativeImage() const
VkImage 핸들을 반환합니다.
[pure virtual] VkImageLayout QSGVulkanTexture::nativeImageLayout() const
이미지 레이아웃을 반환합니다.
[delete] QNativeInterface::QSGVulkanTexture &QSGVulkanTexture::operator=(QNativeInterface::QSGVulkanTexture &&)
other 를 이 QSGVulkanTexture 인스턴스에 할당합니다. 이 함수는 삭제됩니다.
[delete] QNativeInterface::QSGVulkanTexture &QSGVulkanTexture::operator=(const QNativeInterface::QSGVulkanTexture &)
other 를 이 QSGVulkanTexture 인스턴스에 복사-할당합니다. 이 함수는 삭제되었습니다.
© 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.