Henri Verbeet : d3d10: Add the ID3D10StateBlock interface.

Alexandre Julliard julliard at winehq.org
Tue Nov 15 13:17:31 CST 2011


Module: wine
Branch: master
Commit: 2112f48eeee15b734a7ff20e69b7b99a25dcc7b6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2112f48eeee15b734a7ff20e69b7b99a25dcc7b6

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Nov 14 21:11:39 2011 +0100

d3d10: Add the ID3D10StateBlock interface.

---

 include/d3d10effect.h |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/include/d3d10effect.h b/include/d3d10effect.h
index 772d424..8c5cc63 100644
--- a/include/d3d10effect.h
+++ b/include/d3d10effect.h
@@ -778,12 +778,31 @@ DECLARE_INTERFACE(ID3D10EffectPass)
 };
 #undef INTERFACE
 
+DEFINE_GUID(IID_ID3D10StateBlock, 0x0803425a, 0x57f5, 0x4dd6, 0x94, 0x65, 0xa8, 0x75, 0x70, 0x83, 0x4a, 0x08);
+
+#define INTERFACE ID3D10StateBlock
+DECLARE_INTERFACE_(ID3D10StateBlock, IUnknown)
+{
+    /* IUnknown methods */
+    STDMETHOD(QueryInterface)(THIS_ REFIID iid, void **object) PURE;
+    STDMETHOD_(ULONG, AddRef)(THIS) PURE;
+    STDMETHOD_(ULONG, Release)(THIS) PURE;
+    /* ID3D10StateBlock methods */
+    STDMETHOD(Capture)(THIS) PURE;
+    STDMETHOD(Apply)(THIS) PURE;
+    STDMETHOD(ReleaseAllDeviceObjects)(THIS) PURE;
+    STDMETHOD(GetDevice)(THIS_ ID3D10Device **device) PURE;
+};
+#undef INTERFACE
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 HRESULT WINAPI D3D10CreateEffectFromMemory(void *data, SIZE_T data_size, UINT flags,
         ID3D10Device *device, ID3D10EffectPool *effect_pool, ID3D10Effect **effect);
+HRESULT WINAPI D3D10CreateStateBlock(ID3D10Device *device,
+        D3D10_STATE_BLOCK_MASK *mask, ID3D10StateBlock **stateblock);
 
 #ifdef __cplusplus
 }




More information about the wine-cvs mailing list