d3d10shader.h revision 3194da424708abdd288b28d96892b3a5f3f7df0b
/*
* Copyright 2009 Henri Verbeet for CodeWeavers
*
* 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 __WINE_D3D10SHADER_H
#define __WINE_D3D10SHADER_H
#include "d3d10.h"
#define D3D10_SHADER_DEBUG 0x0001
#define D3D10_SHADER_SKIP_VALIDATION 0x0002
#define D3D10_SHADER_SKIP_OPTIMIZATION 0x0004
#define D3D10_SHADER_PACK_MATRIX_ROW_MAJOR 0x0008
#define D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR 0x0010
#define D3D10_SHADER_PARTIAL_PRECISION 0x0020
#define D3D10_SHADER_FORCE_VS_SOFTWARE_NO_OPT 0x0040
#define D3D10_SHADER_FORCE_PS_SOFTWARE_NO_OPT 0x0080
#define D3D10_SHADER_NO_PRESHADER 0x0100
#define D3D10_SHADER_AVOID_FLOW_CONTROL 0x0200
#define D3D10_SHADER_PREFER_FLOW_CONTROL 0x0400
#define D3D10_SHADER_ENABLE_STRICTNESS 0x0800
#define D3D10_SHADER_ENABLE_BACKWARDS_COMPATIBILITY 0x1000
#define D3D10_SHADER_IEEE_STRICTNESS 0x2000
#define D3D10_SHADER_WARNINGS_ARE_ERRORS 0x40000
#define D3D10_SHADER_OPTIMIZATION_LEVEL0 0x4000
#define D3D10_SHADER_OPTIMIZATION_LEVEL1 0x0000
#define D3D10_SHADER_OPTIMIZATION_LEVEL2 0xC000
#define D3D10_SHADER_OPTIMIZATION_LEVEL3 0x8000
/* These are defined as version-neutral in d3dcommon.h */
typedef D3D_SHADER_MACRO D3D10_SHADER_MACRO;
typedef D3D_SHADER_MACRO *LPD3D10_SHADER_MACRO;
typedef D3D_CBUFFER_TYPE D3D10_CBUFFER_TYPE;
typedef D3D_CBUFFER_TYPE *LPD3D10_CBUFFER_TYPE;
typedef D3D_NAME D3D10_NAME;
typedef D3D_INCLUDE_TYPE D3D10_INCLUDE_TYPE;
typedef ID3DInclude ID3D10Include;
typedef ID3DInclude *LPD3D10INCLUDE;
#define IID_ID3D10Include IID_ID3DInclude
typedef struct _D3D10_SHADER_INPUT_BIND_DESC
{
const char *Name;
typedef struct _D3D10_SIGNATURE_PARAMETER_DESC
{
const char *SemanticName;
typedef struct _D3D10_SHADER_DESC
{
const char *Creator;
typedef struct _D3D10_SHADER_BUFFER_DESC
{
const char *Name;
typedef struct _D3D10_SHADER_VARIABLE_DESC
{
const char *Name;
void *DefaultValue;
typedef struct _D3D10_SHADER_TYPE_DESC
{
DEFINE_GUID(IID_ID3D10ShaderReflectionType, 0xc530ad7d, 0x9b16, 0x4395, 0xa9, 0x79, 0xba, 0x2e, 0xcf, 0xf8, 0x3a, 0xdd);
#define INTERFACE ID3D10ShaderReflectionType
{
};
DEFINE_GUID(IID_ID3D10ShaderReflectionVariable, 0x1bf63c95, 0x2650, 0x405d, 0x99, 0xc1, 0x36, 0x36, 0xbd, 0x1d, 0xa0, 0xa1);
{
};
DEFINE_GUID(IID_ID3D10ShaderReflectionConstantBuffer, 0x66c66a94, 0xdddd, 0x4b62, 0xa6, 0x6a, 0xf0, 0xda, 0x33, 0xc2, 0xb4, 0xd0);
{
STDMETHOD_(struct ID3D10ShaderReflectionVariable *, GetVariableByName)(THIS_ const char *name) PURE;
};
DEFINE_GUID(IID_ID3D10ShaderReflection, 0xd40e20b6, 0xf8f7, 0x42ad, 0xab, 0x20, 0x4b, 0xaf, 0x8f, 0x15, 0xdf, 0xaa);
#define INTERFACE ID3D10ShaderReflection
{
/* IUnknown methods */
/* ID3D10ShaderReflection methods */
STDMETHOD_(struct ID3D10ShaderReflectionConstantBuffer *, GetConstantBufferByIndex)(THIS_ UINT index) PURE;
STDMETHOD_(struct ID3D10ShaderReflectionConstantBuffer *, GetConstantBufferByName)(THIS_ const char *name) PURE;
};
#ifdef __cplusplus
extern "C" {
#endif
HRESULT WINAPI D3D10ReflectShader(const void *data, SIZE_T data_size, ID3D10ShaderReflection **reflector);
HRESULT WINAPI D3D10GetInputAndOutputSignatureBlob(const void *data, SIZE_T data_size, ID3D10Blob **blob);
#ifdef __cplusplus
}
#endif
#endif /* __WINE_D3D10SHADER_H */