Rico Schüller : d3d10: Add the ID3D10ShaderReflectionVariable interface.
Alexandre Julliard
julliard at winehq.org
Fri Jul 23 10:05:45 CDT 2010
Module: wine
Branch: master
Commit: 5daf7fef9679fd52d5c815049cc23fe5169a0aa0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5daf7fef9679fd52d5c815049cc23fe5169a0aa0
Author: Rico Schüller <kgbricola at web.de>
Date: Wed Jul 21 20:44:43 2010 +0200
d3d10: Add the ID3D10ShaderReflectionVariable interface.
---
include/d3d10shader.h | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/include/d3d10shader.h b/include/d3d10shader.h
index 3fc1b6b..862810f 100644
--- a/include/d3d10shader.h
+++ b/include/d3d10shader.h
@@ -130,6 +130,15 @@ typedef struct _D3D10_SIGNATURE_PARAMETER_DESC
BYTE ReadWriteMask;
} D3D10_SIGNATURE_PARAMETER_DESC;
+typedef struct _D3D10_SHADER_VARIABLE_DESC
+{
+ LPCSTR Name;
+ UINT StartOffset;
+ UINT Size;
+ UINT uFlags;
+ LPVOID DefaultValue;
+} D3D10_SHADER_VARIABLE_DESC;
+
typedef struct _D3D10_SHADER_TYPE_DESC
{
D3D10_SHADER_VARIABLE_CLASS Class;
@@ -153,6 +162,16 @@ DECLARE_INTERFACE(ID3D10ShaderReflectionType)
};
#undef INTERFACE
+DEFINE_GUID(IID_ID3D10ShaderReflectionVariable, 0x1bf63c95, 0x2650, 0x405d, 0x99, 0xc1, 0x36, 0x36, 0xbd, 0x1d, 0xa0, 0xa1);
+
+#define INTERFACE ID3D10ShaderReflectionVariable
+DECLARE_INTERFACE(ID3D10ShaderReflectionVariable)
+{
+ STDMETHOD(GetDesc)(THIS_ D3D10_SHADER_VARIABLE_DESC *desc) PURE;
+ STDMETHOD_(struct ID3D10ShaderReflectionType *, GetType)(THIS) PURE;
+};
+#undef INTERFACE
+
LPCSTR WINAPI D3D10GetVertexShaderProfile(ID3D10Device *device);
LPCSTR WINAPI D3D10GetGeometryShaderProfile(ID3D10Device *device);
LPCSTR WINAPI D3D10GetPixelShaderProfile(ID3D10Device *device);
More information about the wine-cvs
mailing list