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
QWindowsD3D11TestDeviceContext Struct Reference

#include <qwindowsd3d11testdevicecontext_p.h>

Collaboration diagram for QWindowsD3D11TestDeviceContext:

Public Member Functions

ComResult< QColor > getFirstPixelColor (const ComPtr< ID3D11Texture2D > &texture) const
ComResult< QColor > getFirstPixelColorBGRA (const ComPtr< ID3D11Texture2D > &texture) const
ComResult< ComPtr< ID3D11Texture2D > > createTextureArray (QSize size, const std::vector< QColor > &colors) const
bool isTextureFormatSupported (DXGI_FORMAT format) const
ComResult< ComPtr< ID3D11Texture2D > > createNV12Texture (QSize size) const
HRESULT fillNV12Texture (const ComPtr< ID3D11Texture2D > &texture, QSize size, quint8 lumaValue, quint8 chromaUValue, quint8 chromaVValue, UINT arraySlice=0) const
ComResult< ComPtr< ID3D11Texture2D > > createFilledNV12Texture (QSize size, quint8 lumaValue, quint8 chromaU, quint8 chromaV) const
ComResult< ComPtr< ID3D11Texture2D > > createP010Texture (QSize size) const
HRESULT fillP010Texture (const ComPtr< ID3D11Texture2D > &texture, QSize size, quint16 lumaValue, quint16 chromaUValue, quint16 chromaVValue, UINT arraySlice=0) const
ComResult< ComPtr< ID3D11Texture2D > > createSinglePlaneTexture (QSize size, DXGI_FORMAT format) const
HRESULT fillSinglePlaneTexture (const ComPtr< ID3D11Texture2D > &texture, QSize size, QByteArrayView texel, UINT arraySlice=0) const
ComResult< QByteArray > readPlaneRows (const ComPtr< ID3D11Texture2D > &texture, int rowOffset, int width, int height, int texelSize, UINT arraySlice=0) const

Public Attributes

ComPtr< ID3D11Device1 > device
ComPtr< ID3D11DeviceContext > context

Detailed Description

Definition at line 37 of file qwindowsd3d11testdevicecontext_p.h.

Member Function Documentation

◆ createFilledNV12Texture()

ComResult< ComPtr< ID3D11Texture2D > > QWindowsD3D11TestDeviceContext::createFilledNV12Texture ( QSize size,
quint8 lumaValue,
quint8 chromaU,
quint8 chromaV ) const

Definition at line 227 of file qwindowsd3d11testdevicecontext.cpp.

◆ createNV12Texture()

ComResult< ComPtr< ID3D11Texture2D > > QWindowsD3D11TestDeviceContext::createNV12Texture ( QSize size) const

Definition at line 152 of file qwindowsd3d11testdevicecontext.cpp.

◆ createP010Texture()

ComResult< ComPtr< ID3D11Texture2D > > QWindowsD3D11TestDeviceContext::createP010Texture ( QSize size) const

Definition at line 242 of file qwindowsd3d11testdevicecontext.cpp.

◆ createSinglePlaneTexture()

ComResult< ComPtr< ID3D11Texture2D > > QWindowsD3D11TestDeviceContext::createSinglePlaneTexture ( QSize size,
DXGI_FORMAT format ) const

Definition at line 318 of file qwindowsd3d11testdevicecontext.cpp.

◆ createTextureArray()

ComResult< ComPtr< ID3D11Texture2D > > QWindowsD3D11TestDeviceContext::createTextureArray ( QSize size,
const std::vector< QColor > & colors ) const

Definition at line 106 of file qwindowsd3d11testdevicecontext.cpp.

◆ fillNV12Texture()

HRESULT QWindowsD3D11TestDeviceContext::fillNV12Texture ( const ComPtr< ID3D11Texture2D > & texture,
QSize size,
quint8 lumaValue,
quint8 chromaUValue,
quint8 chromaVValue,
UINT arraySlice = 0 ) const

Definition at line 176 of file qwindowsd3d11testdevicecontext.cpp.

◆ fillP010Texture()

HRESULT QWindowsD3D11TestDeviceContext::fillP010Texture ( const ComPtr< ID3D11Texture2D > & texture,
QSize size,
quint16 lumaValue,
quint16 chromaUValue,
quint16 chromaVValue,
UINT arraySlice = 0 ) const

Definition at line 266 of file qwindowsd3d11testdevicecontext.cpp.

◆ fillSinglePlaneTexture()

HRESULT QWindowsD3D11TestDeviceContext::fillSinglePlaneTexture ( const ComPtr< ID3D11Texture2D > & texture,
QSize size,
QByteArrayView texel,
UINT arraySlice = 0 ) const

Definition at line 343 of file qwindowsd3d11testdevicecontext.cpp.

◆ getFirstPixelColor()

ComResult< QColor > QWindowsD3D11TestDeviceContext::getFirstPixelColor ( const ComPtr< ID3D11Texture2D > & texture) const

Definition at line 28 of file qwindowsd3d11testdevicecontext.cpp.

◆ getFirstPixelColorBGRA()

ComResult< QColor > QWindowsD3D11TestDeviceContext::getFirstPixelColorBGRA ( const ComPtr< ID3D11Texture2D > & texture) const

Definition at line 73 of file qwindowsd3d11testdevicecontext.cpp.

◆ isTextureFormatSupported()

bool QWindowsD3D11TestDeviceContext::isTextureFormatSupported ( DXGI_FORMAT format) const

Definition at line 138 of file qwindowsd3d11testdevicecontext.cpp.

◆ readPlaneRows()

ComResult< QByteArray > QWindowsD3D11TestDeviceContext::readPlaneRows ( const ComPtr< ID3D11Texture2D > & texture,
int rowOffset,
int width,
int height,
int texelSize,
UINT arraySlice = 0 ) const

Definition at line 376 of file qwindowsd3d11testdevicecontext.cpp.

Member Data Documentation

◆ context

◆ device

ComPtr<ID3D11Device1> QWindowsD3D11TestDeviceContext::device

Definition at line 39 of file qwindowsd3d11testdevicecontext_p.h.


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