3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Copyright 2009 Henri Verbeet for CodeWeavers
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * This library is free software; you can redistribute it and/or
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * modify it under the terms of the GNU Lesser General Public
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * License as published by the Free Software Foundation; either
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * version 2.1 of the License, or (at your option) any later version.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * This library is distributed in the hope that it will be useful,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Lesser General Public License for more details.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * You should have received a copy of the GNU Lesser General Public
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * License along with this library; if not, write to the Free Software
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * a choice of LGPL license versions is made available with the language indicating
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
930b5f872e89407f445d4000d4e4aaecaa6a0998vboxsync * of the LGPL is applied is otherwise unspecified.
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR 0x0010
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define D3D10_SHADER_FORCE_VS_SOFTWARE_NO_OPT 0x0040
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define D3D10_SHADER_FORCE_PS_SOFTWARE_NO_OPT 0x0080
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define D3D10_SHADER_ENABLE_BACKWARDS_COMPATIBILITY 0x1000
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync/* These are defined as version-neutral in d3dcommon.h */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef D3D_SHADER_VARIABLE_CLASS D3D10_SHADER_VARIABLE_CLASS;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef D3D_SHADER_VARIABLE_CLASS *LPD3D10_SHADER_VARIABLE_CLASS;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef D3D_REGISTER_COMPONENT_TYPE D3D10_REGISTER_COMPONENT_TYPE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef D3D_RESOURCE_RETURN_TYPE D3D10_RESOURCE_RETURN_TYPE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef D3D_SHADER_INPUT_TYPE D3D10_SHADER_INPUT_TYPE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef D3D_SHADER_INPUT_TYPE *LPD3D10_SHADER_INPUT_TYPE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef D3D_SHADER_VARIABLE_TYPE D3D10_SHADER_VARIABLE_TYPE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsynctypedef D3D_SHADER_VARIABLE_TYPE *LPD3D10_SHADER_VARIABLE_TYPE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_ID3D10ShaderReflectionType, 0xc530ad7d, 0x9b16, 0x4395, 0xa9, 0x79, 0xba, 0x2e, 0xcf, 0xf8, 0x3a, 0xdd);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetDesc)(THIS_ D3D10_SHADER_TYPE_DESC *desc) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(struct ID3D10ShaderReflectionType *, GetMemberTypeByIndex)(THIS_ UINT index) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(struct ID3D10ShaderReflectionType *, GetMemberTypeByName)(THIS_ const char *name) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(const char *, GetMemberTypeName)(THIS_ UINT index) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_ID3D10ShaderReflectionVariable, 0x1bf63c95, 0x2650, 0x405d, 0x99, 0xc1, 0x36, 0x36, 0xbd, 0x1d, 0xa0, 0xa1);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetDesc)(THIS_ D3D10_SHADER_VARIABLE_DESC *desc) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(struct ID3D10ShaderReflectionType *, GetType)(THIS) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_ID3D10ShaderReflectionConstantBuffer, 0x66c66a94, 0xdddd, 0x4b62, 0xa6, 0x6a, 0xf0, 0xda, 0x33, 0xc2, 0xb4, 0xd0);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#define INTERFACE ID3D10ShaderReflectionConstantBuffer
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDECLARE_INTERFACE(ID3D10ShaderReflectionConstantBuffer)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetDesc)(THIS_ D3D10_SHADER_BUFFER_DESC *desc) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(struct ID3D10ShaderReflectionVariable *, GetVariableByIndex)(THIS_ UINT index) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(struct ID3D10ShaderReflectionVariable *, GetVariableByName)(THIS_ const char *name) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDEFINE_GUID(IID_ID3D10ShaderReflection, 0xd40e20b6, 0xf8f7, 0x42ad, 0xab, 0x20, 0x4b, 0xaf, 0x8f, 0x15, 0xdf, 0xaa);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncDECLARE_INTERFACE_(ID3D10ShaderReflection, IUnknown)
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /* IUnknown methods */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync /* ID3D10ShaderReflection methods */
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetDesc)(THIS_ D3D10_SHADER_DESC *desc) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(struct ID3D10ShaderReflectionConstantBuffer *, GetConstantBufferByIndex)(THIS_ UINT index) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD_(struct ID3D10ShaderReflectionConstantBuffer *, GetConstantBufferByName)(THIS_ const char *name) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetResourceBindingDesc)(THIS_ UINT index, D3D10_SHADER_INPUT_BIND_DESC *desc) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetInputParameterDesc)(THIS_ UINT index, D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync STDMETHOD(GetOutputParameterDesc)(THIS_ UINT index, D3D10_SIGNATURE_PARAMETER_DESC *desc) PURE;
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncextern "C" {
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncHRESULT WINAPI D3D10CompileShader(const char *data, SIZE_T data_size, const char *filename,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync const D3D10_SHADER_MACRO *defines, ID3D10Include *include, const char *entrypoint,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync const char *profile, UINT flags, ID3D10Blob **shader, ID3D10Blob **error_messages);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncHRESULT WINAPI D3D10DisassembleShader(const void *data, SIZE_T data_size,
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync BOOL color_code, const char *comments, ID3D10Blob **disassembly);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncconst char * WINAPI D3D10GetVertexShaderProfile(ID3D10Device *device);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncconst char * WINAPI D3D10GetGeometryShaderProfile(ID3D10Device *device);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncconst char * WINAPI D3D10GetPixelShaderProfile(ID3D10Device *device);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncHRESULT WINAPI D3D10ReflectShader(const void *data, SIZE_T data_size, ID3D10ShaderReflection **reflector);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncHRESULT WINAPI D3D10GetInputSignatureBlob(const void *data, SIZE_T data_size, ID3D10Blob **blob);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncHRESULT WINAPI D3D10GetOutputSignatureBlob(const void *data, SIZE_T data_size, ID3D10Blob **blob);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncHRESULT WINAPI D3D10GetInputAndOutputSignatureBlob(const void *data, SIZE_T data_size, ID3D10Blob **blob);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncHRESULT WINAPI D3D10GetShaderDebugInfo(const void *data, SIZE_T data_size, ID3D10Blob **blob);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsync#endif /* __WINE_D3D10SHADER_H */