[PATCH 1/2] d3dx10_43: Add D3DX10LoadTextureFromTexture definitions.

Connor McAdams conmanx360 at gmail.com
Mon Oct 28 21:16:17 CDT 2019


Add the function definition for D3DX10LoadTextureFromTexture to the
header file, as well as the structure definition for
D3DX10_TEXTURE_LOAD_INFO.

Signed-off-by: Connor McAdams <conmanx360 at gmail.com>
---
 include/d3dx10tex.h | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/include/d3dx10tex.h b/include/d3dx10tex.h
index 25ad490949..282f245e8e 100644
--- a/include/d3dx10tex.h
+++ b/include/d3dx10tex.h
@@ -103,6 +103,36 @@ typedef struct D3DX10_IMAGE_LOAD_INFO
 #endif
 } D3DX10_IMAGE_LOAD_INFO;
 
+typedef struct _D3DX10_TEXTURE_LOAD_INFO
+{
+    D3D10_BOX       *pSrcBox;
+    D3D10_BOX       *pDstBox;
+    UINT            SrcFirstMip;
+    UINT            DstFirstMip;
+    UINT            NumMips;
+    UINT            SrcFirstElement;
+    UINT            DstFirstElement;
+    UINT            NumElements;
+    UINT            Filter;
+    UINT            MipFilter;
+
+#ifdef __cplusplus
+    _D3DX10_TEXTURE_LOAD_INFO()
+    {
+        pSrcBox = NULL;
+        pDstBox = NULL;
+        SrcFirstMip = 0;
+        DstFirstMip = 0;
+        NumMips = D3DX10_DEFAULT;
+        SrcFirstElement = 0;
+        DstFirstElement = 0;
+        NumElements = D3DX10_DEFAULT;
+        Filter = D3DX10_DEFAULT;
+        MipFilter = D3DX10_DEFAULT;
+    }
+#endif
+} D3DX10_TEXTURE_LOAD_INFO;
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -115,6 +145,9 @@ HRESULT WINAPI D3DX10FilterTexture(ID3D10Resource *texture, UINT src_level, UINT
 HRESULT WINAPI D3DX10GetImageInfoFromMemory(const void *src_data, SIZE_T src_data_size, ID3DX10ThreadPump *pump,
         D3DX10_IMAGE_INFO *img_info, HRESULT *hresult);
 
+HRESULT WINAPI D3DX10LoadTextureFromTexture(ID3D10Resource *src_tex, D3DX10_TEXTURE_LOAD_INFO *tex_load_info,
+        ID3D10Resource *dst_tex);
+
 #ifdef __cplusplus
 }
 #endif
-- 
2.20.1




More information about the wine-devel mailing list