QNativeInterface::QSGMetalTexture Struct
Metal 텍스처 오브젝트에 대한 액세스 권한을 제공하고 이를 적용할 수 있게 해줍니다. 더 보기...
| 헤더: | #include <QSGTexture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| 다음부터: | Qt 6.0부터 |
- 상속된 멤버를 포함한 모든 멤버 목록
- QSGMetalTexture는 Native Interfaces의 일부입니다.
공개 함수
| QSGMetalTexture() | |
| QSGMetalTexture(const QNativeInterface::QSGMetalTexture &) | |
| QSGMetalTexture(QNativeInterface::QSGMetalTexture &&) | |
| int | nativeTexture() const |
| QNativeInterface::QSGMetalTexture & | operator=(QNativeInterface::QSGMetalTexture &&) |
| QNativeInterface::QSGMetalTexture & | operator=(const QNativeInterface::QSGMetalTexture &) |
정적 공용 멤버
(since 6.0) QSGTexture * | fromNative(int texture, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {}) |
멤버 함수 설명
[constexpr noexcept default] QSGMetalTexture::QSGMetalTexture()
QSGMetalTexture 의 인스턴스를 기본 생성합니다.
[delete] QSGMetalTexture::QSGMetalTexture(const QNativeInterface::QSGMetalTexture &)
QSGMetalTexture 의 인스턴스를 복사 생성합니다. 이 함수는 삭제되었습니다.
[delete] QSGMetalTexture::QSGMetalTexture(QNativeInterface::QSGMetalTexture &&)
QSGMetalTexture 의 인스턴스를 move-construct로 생성합니다. 이 함수는 삭제되었습니다.
[static, since 6.0] QSGTexture *QSGMetalTexture::fromNative(int texture, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {})
window 를 위해 기존 Metal texture 객체를 감싸는 새로운 QSGTexture 객체를 생성합니다.
생성된 QSGTexture 는 네이티브 객체를 래핑하지만, 이를 소유하지는 않습니다. 이 함수를 호출한 쪽에서 반환된 QSGTexture 를 삭제해야 하지만, 이는 기본이 되는 네이티브 객체를 파기하지는 않습니다.
이 함수는 현재 2D RGBA 텍스처에만 적합합니다.
경고: 씬 그래프가 아직 초기화되지 않은 경우,이 함수는 null을 반환합니다.
options 를 사용하여 텍스처 속성을 사용자 정의하십시오. 여기에서는 TextureHasAlphaChannel 및 TextureHasMipmaps만 고려됩니다.
size 픽셀 단위의 크기를 지정합니다.
참고: 이 함수는 씬 그래프 렌더링 스레드에서 호출되어야 합니다.
이 함수는 Qt 6.0에서 도입되었습니다.
QQuickWindow::sceneGraphInitialized(), QSGTexture, Scene Graph - Metal Texture Import 및 Scene Graph - Vulkan Texture Import도 참조하십시오 .
int QSGMetalTexture::nativeTexture() const
Metal 텍스처 객체를 반환합니다.
[delete] QNativeInterface::QSGMetalTexture &QSGMetalTexture::operator=(QNativeInterface::QSGMetalTexture &&)
other 를 이 QSGMetalTexture 인스턴스에 할당합니다. 이 함수는 삭제됩니다.
[delete] QNativeInterface::QSGMetalTexture &QSGMetalTexture::operator=(const QNativeInterface::QSGMetalTexture &)
other 를 이 QSGMetalTexture 인스턴스에 복사-할당합니다. 이 함수는 삭제되었습니다.
© 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.