[PATCH] include/d3d11shader.h: Set D3D_COMPILER_VERSION to 47, if not defined.

Biswapriyo Nath nathbappai at gmail.com
Sun Sep 27 09:32:11 CDT 2020


-------------- next part --------------
From 5adc19c5b56428c2c4f89c2674bf50f6922e265e Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbappai at gmail.com>
Date: Sun, 27 Sep 2020 20:01:16 +0530
Subject: [PATCH] include/d3d11shader.h: Set D3D_COMPILER_VERSION to 47, if not defined.

In Windows 10, d3dcompiler_47 is default d3dcompiler version.
So, defining version 47 by default will include MinPrecision
member in D3D11_SIGNATURE_PARAMETER_DESC structure and also
defines correct IID_ID3D11ShaderReflection GUID value.

Signed-off-by: Biswapriyo Nath <nathbappai at gmail.com>
---
 include/d3d11shader.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/d3d11shader.h b/include/d3d11shader.h
index 501d01e..a744150 100644
--- a/include/d3d11shader.h
+++ b/include/d3d11shader.h
@@ -21,6 +21,11 @@
 
 #include "d3dcommon.h"
 
+/* If not defined set d3dcompiler_47 by default. */
+#ifndef D3D_COMPILER_VERSION
+#define D3D_COMPILER_VERSION 47
+#endif
+
 /* These are defined as version-neutral in d3dcommon.h */
 typedef D3D_CBUFFER_TYPE D3D11_CBUFFER_TYPE;
 
-- 
2.27.0



More information about the wine-devel mailing list