Fix QQuickWidget rendering API mapping for D3D12
Right now requesting d3d12 via QSG_RHI_BACKEND or the C++ API maps to the Null backend of QRhi. That is not ideal. QRhiWidget has this logic, but the already existing QQuickWidget was not yet adjusted in 6.6 it seems. Pick-to: 6.6 Change-Id: I12301e815d525c14584b01dcd0caa787d1c79ad0 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
94d68a9410
commit
76ae3dd783
|
@ -31,6 +31,8 @@ Rectangle {
|
|||
text.api = "OpenGL on QRhi";
|
||||
else if (api === GraphicsInfo.Direct3D11)
|
||||
text.api = "D3D11 on QRhi";
|
||||
else if (api === GraphicsInfo.Direct3D12)
|
||||
text.api = "D3D12 on QRhi";
|
||||
else if (api === GraphicsInfo.Vulkan)
|
||||
text.api = "Vulkan on QRhi";
|
||||
else if (api === GraphicsInfo.Metal)
|
||||
|
|
|
@ -989,6 +989,8 @@ static inline QPlatformBackingStoreRhiConfig::Api graphicsApiToBackingStoreRhiAp
|
|||
return QPlatformBackingStoreRhiConfig::Vulkan;
|
||||
case QSGRendererInterface::Direct3D11:
|
||||
return QPlatformBackingStoreRhiConfig::D3D11;
|
||||
case QSGRendererInterface::Direct3D12:
|
||||
return QPlatformBackingStoreRhiConfig::D3D12;
|
||||
case QSGRendererInterface::Metal:
|
||||
return QPlatformBackingStoreRhiConfig::Metal;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue