d3dx9: Add some shader definitions.

This commit is contained in:
Christian Costa 2010-03-08 08:56:34 +01:00 committed by Alexandre Julliard
parent 8991b214b6
commit 2a933cb016
1 changed files with 39 additions and 0 deletions

View File

@ -299,4 +299,43 @@ HRESULT WINAPI D3DXGetShaderConstantTable(CONST DWORD* byte_code,
}
#endif
typedef struct _D3DXSHADER_CONSTANTTABLE
{
DWORD Size;
DWORD Creator;
DWORD Version;
DWORD Constants;
DWORD ConstantInfo;
DWORD Flags;
DWORD Target;
} D3DXSHADER_CONSTANTTABLE, *LPD3DXSHADER_CONSTANTTABLE;
typedef struct _D3DXSHADER_CONSTANTINFO
{
DWORD Name;
WORD RegisterSet;
WORD RegisterIndex;
WORD RegisterCount;
WORD Reserved;
DWORD TypeInfo;
DWORD DefaultValue;
} D3DXSHADER_CONSTANTINFO, *LPD3DXSHADER_CONSTANTINFO;
typedef struct _D3DXSHADER_TYPEINFO
{
WORD Class;
WORD Type;
WORD Rows;
WORD Columns;
WORD Elements;
WORD StructMembers;
DWORD StructMemberInfo;
} D3DXSHADER_TYPEINFO, *LPD3DXSHADER_TYPEINFO;
typedef struct _D3DXSHADER_STRUCTMEMBERINFO
{
DWORD Name;
DWORD TypeInfo;
} D3DXSHADER_STRUCTMEMBERINFO, *LPD3DXSHADER_STRUCTMEMBERINFO;
#endif /* __D3DX9SHADER_H__ */