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