QSGD3D12Texture Struct
struct QNativeInterface::QSGD3D12TextureDirect3D 12 텍스처 오브젝트에 대한 액세스를 제공하고 이를 채택할 수 있도록 합니다. 더 보기...
Header: | #include <QSGTexture> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
qmake: | QT += quick |
이후: | Qt 6.6 |
- 상속된 멤버를 포함한 모든 멤버 목록
- QSGD3D12Texture는 네이티브 인터페이스의 일부입니다.
공용 함수
virtual void * | nativeTexture() const = 0 |
정적 공용 멤버
(since 6.6) QSGTexture * | fromNative(void *texture, int resourceState, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options = {}) |
멤버 함수 문서
[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 텍스처 리소스의 현재 상태를 지정해야 합니다.
참고: 이 함수는 씬 그래프 렌더링 스레드에서 호출해야 합니다.
이 함수는 Qt 6.6에 도입되었습니다.
QQuickWindow::sceneGraphInitialized(), QSGTexture, 씬 그래프 - 메탈 텍스처 임포트 및 씬 그래프 - 벌칸 텍스처 임포트도참조하십시오 .
[pure virtual]
void *QSGD3D12Texture::nativeTexture() const
ID3D12Texture 오브젝트를 반환합니다.
© 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.