Rico Schüller : include: Add ID3D10ShaderReflection1 interface.

Alexandre Julliard julliard at winehq.org
Tue Nov 2 11:11:01 CDT 2010


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

Author: Rico Schüller <kgbricola at web.de>
Date:   Mon Nov  1 22:18:49 2010 +0100

include: Add ID3D10ShaderReflection1 interface.

---

 include/Makefile.in     |    1 +
 include/d3d10_1shader.h |   52 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/include/Makefile.in b/include/Makefile.in
index 70fa9f0..d112efa 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -151,6 +151,7 @@ SRCDIR_INCLUDES = \
 	custcntl.h \
 	cvconst.h \
 	d3d.h \
+	d3d10_1shader.h \
 	d3d10effect.h \
 	d3d10misc.h \
 	d3d10shader.h \
diff --git a/include/d3d10_1shader.h b/include/d3d10_1shader.h
new file mode 100644
index 0000000..6eda20c
--- /dev/null
+++ b/include/d3d10_1shader.h
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2010 Rico Schüller
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __D3D10_1SHADER_H__
+#define __D3D10_1SHADER_H__
+
+#include "d3d10shader.h"
+
+DEFINE_GUID(IID_ID3D10ShaderReflection1, 0xc3457783, 0xa846, 0x47ce, 0x95, 0x20, 0xce, 0xa6, 0xf6, 0x6e, 0x74, 0x47);
+
+#define INTERFACE ID3D10ShaderReflection1
+DECLARE_INTERFACE_(ID3D10ShaderReflection1, IUnknown)
+{
+    /* IUnknown methods */
+    STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID *object) PURE;
+    STDMETHOD_(ULONG, AddRef)(THIS) PURE;
+    STDMETHOD_(ULONG, Release)(THIS) PURE;
+    /* ID3D10ShaderReflection1 methods */
+    STDMETHOD(GetDesc)(THIS_ D3D10_SHADER_DESC *desc) PURE;
+    STDMETHOD_(struct ID3D10ShaderReflectionConstantBuffer *, GetConstantBufferByIndex)(THIS_ UINT index) PURE;
+    STDMETHOD_(struct ID3D10ShaderReflectionConstantBuffer *, GetConstantBufferByName)(THIS_ LPCSTR name) PURE;
+    STDMETHOD(GetResourceBindingDesc)(THIS_ UINT index, D3D10_SHADER_INPUT_BIND_DESC *desc) PURE;
+    STDMETHOD(GetInputParameterDesc)(THIS_ UINT index, D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
+    STDMETHOD(GetOutputParameterDesc)(THIS_ UINT index, D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
+    STDMETHOD_(struct ID3D10ShaderReflectionVariable *, GetVariableByName)(THIS_ LPCSTR name) PURE;
+    STDMETHOD(GetResourceBindingDescByName)(THIS_ LPCSTR name, D3D10_SHADER_INPUT_BIND_DESC *desc) PURE;
+    STDMETHOD(GetMovInstructionCount)(THIS_ UINT *count) PURE;
+    STDMETHOD(GetMovcInstructionCount)(THIS_ UINT *count) PURE;
+    STDMETHOD(GetConversionInstructionCount)(THIS_ UINT *count) PURE;
+    STDMETHOD(GetBitwiseInstructionCount)(THIS_ UINT *count) PURE;
+    STDMETHOD(GetGSInputPrimitive)(THIS_ D3D10_PRIMITIVE *prim) PURE;
+    STDMETHOD(IsLevel9Shader)(THIS_ BOOL *level9shader) PURE;
+    STDMETHOD(IsSampleFrequencyShader)(THIS_ BOOL *samplefrequency) PURE;
+};
+#undef INTERFACE
+
+#endif




More information about the wine-cvs mailing list