diff options
Diffstat (limited to 'src/gui/rhi/qrhi_platform.h')
-rw-r--r-- | src/gui/rhi/qrhi_platform.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/rhi/qrhi_platform.h b/src/gui/rhi/qrhi_platform.h index 30676d0da6..e7be522c52 100644 --- a/src/gui/rhi/qrhi_platform.h +++ b/src/gui/rhi/qrhi_platform.h @@ -23,7 +23,7 @@ #include <QtGui/qvulkaninstance.h> #endif -#if defined(Q_OS_MACOS) || defined(Q_OS_IOS) || defined(Q_QDOC) +#if QT_CONFIG(metal) || defined(Q_QDOC) Q_FORWARD_DECLARE_OBJC_CLASS(MTLDevice); Q_FORWARD_DECLARE_OBJC_CLASS(MTLCommandQueue); Q_FORWARD_DECLARE_OBJC_CLASS(MTLCommandBuffer); @@ -66,7 +66,7 @@ struct Q_GUI_EXPORT QRhiGles2NativeHandles : public QRhiNativeHandles #endif // opengl/qdoc -#if QT_CONFIG(vulkan) || defined(Q_QDOC) +#if (QT_CONFIG(vulkan) && __has_include(<vulkan/vulkan.h>)) || defined(Q_QDOC) struct Q_GUI_EXPORT QRhiVulkanInitParams : public QRhiInitParams { @@ -145,12 +145,12 @@ struct Q_GUI_EXPORT QRhiD3D12NativeHandles : public QRhiNativeHandles struct Q_GUI_EXPORT QRhiD3D12CommandBufferNativeHandles : public QRhiNativeHandles { - void *commandList = nullptr; // ID3D12GraphicsCommandList + void *commandList = nullptr; // ID3D12GraphicsCommandList1 }; #endif // WIN/QDOC -#if defined(Q_OS_MACOS) || defined(Q_OS_IOS) || defined(Q_QDOC) +#if QT_CONFIG(metal) || defined(Q_QDOC) struct Q_GUI_EXPORT QRhiMetalInitParams : public QRhiInitParams { |