From 8d69c260e4fb816bbe7e7d62f9e7c3263e34d7cd Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Sat, 22 Aug 2020 10:09:55 +0530 Subject: [PATCH 6/6] include/d3d10.idl: Use unions in D3D10_BUFFER_SRV structure. Signed-off-by: Biswapriyo Nath --- include/d3d10.idl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/d3d10.idl b/include/d3d10.idl index 2e8927f..4a94034 100644 --- a/include/d3d10.idl +++ b/include/d3d10.idl @@ -723,8 +723,14 @@ typedef struct D3D10_RENDER_TARGET_VIEW_DESC { typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION; typedef struct D3D10_BUFFER_SRV { - UINT ElementOffset; - UINT ElementWidth; + union { + UINT FirstElement; + UINT ElementOffset; + }; + union { + UINT NumElements; + UINT ElementWidth; + }; } D3D10_BUFFER_SRV; typedef struct D3D10_TEX1D_SRV { -- 2.27.0