Biswapriyo Nath : include/d3d10.idl: Use unions in D3D10_BUFFER_RTV structure.

Alexandre Julliard julliard at winehq.org
Tue Aug 25 16:16:57 CDT 2020


Module: wine
Branch: master
Commit: 40690d0104fecf43f89e5fd64e9bf1615d4ed966
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=40690d0104fecf43f89e5fd64e9bf1615d4ed966

Author: Biswapriyo Nath <nathbappai at gmail.com>
Date:   Sat Aug 22 10:27:55 2020 +0530

include/d3d10.idl: Use unions in D3D10_BUFFER_RTV structure.

Signed-off-by: Biswapriyo Nath <nathbappai at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/d3d10.idl | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/include/d3d10.idl b/include/d3d10.idl
index f125956fdd..2e8927f318 100644
--- a/include/d3d10.idl
+++ b/include/d3d10.idl
@@ -660,8 +660,14 @@ typedef enum D3D10_RTV_DIMENSION {
 } D3D10_RTV_DIMENSION;
 
 typedef struct D3D10_BUFFER_RTV {
-    UINT ElementOffset;
-    UINT ElementWidth;
+    union {
+        UINT FirstElement;
+        UINT ElementOffset;
+    };
+    union {
+        UINT NumElements;
+        UINT ElementWidth;
+    };
 } D3D10_BUFFER_RTV;
 
 typedef struct D3D10_TEX1D_RTV {




More information about the wine-cvs mailing list