Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtMultimediaPrivate::QWindowsD3D11RhiTextureImporter Class Reference

#include <qwindowsd3d11rhitextureimporter_p.h>

Collaboration diagram for QtMultimediaPrivate::QWindowsD3D11RhiTextureImporter:

Public Member Functions

 QWindowsD3D11RhiTextureImporter ()
 ~QWindowsD3D11RhiTextureImporter ()
QVideoFrameTexturesHandlesUPtr importTexture (QRhi &, ID3D11Device *srcDevice, ID3D11DeviceContext *srcContext, const ComPtr< ID3D11Texture2D > &texture, const QSize &frameSize, QVideoFrameFormat::PixelFormat pixelFormat, UINT subresourceIndex=0)

Static Public Member Functions

static bool isRhiBackendSupported (QRhi &)
static bool isPixelFormatSupportedByRhiBackend (QRhi &, QVideoFrameFormat::PixelFormat)

Detailed Description

Definition at line 67 of file qwindowsd3d11rhitextureimporter_p.h.

Constructor & Destructor Documentation

◆ QWindowsD3D11RhiTextureImporter()

QtMultimediaPrivate::QWindowsD3D11RhiTextureImporter::QWindowsD3D11RhiTextureImporter ( )
default

◆ ~QWindowsD3D11RhiTextureImporter()

QtMultimediaPrivate::QWindowsD3D11RhiTextureImporter::~QWindowsD3D11RhiTextureImporter ( )
default

Member Function Documentation

◆ importTexture()

QVideoFrameTexturesHandlesUPtr QtMultimediaPrivate::QWindowsD3D11RhiTextureImporter::importTexture ( QRhi & rhi,
ID3D11Device * srcDevice,
ID3D11DeviceContext * srcContext,
const ComPtr< ID3D11Texture2D > & texture,
const QSize & frameSize,
QVideoFrameFormat::PixelFormat pixelFormat,
UINT subresourceIndex = 0 )

'pixelFormat' is only consulted on D3D12 and OpenGL, to route multi-plane textures through QWindowsD3D11PlaneSplitter. Returns null on failure.

Definition at line 378 of file qwindowsd3d11rhitextureimporter.cpp.

◆ isPixelFormatSupportedByRhiBackend()

bool QtMultimediaPrivate::QWindowsD3D11RhiTextureImporter::isPixelFormatSupportedByRhiBackend ( QRhi & rhi,
QVideoFrameFormat::PixelFormat pixelFormat )
static

Returns whether a texture of the given pixel format can be imported into 'rhi'. On D3D12 and OpenGL, multi-plane formats must be splittable by QWindowsD3D11PlaneSplitter.

Definition at line 362 of file qwindowsd3d11rhitextureimporter.cpp.

◆ isRhiBackendSupported()

bool QtMultimediaPrivate::QWindowsD3D11RhiTextureImporter::isRhiBackendSupported ( QRhi & rhi)
static

Definition at line 327 of file qwindowsd3d11rhitextureimporter.cpp.


The documentation for this class was generated from the following files: