12 #ifndef __D3DX9SHADER_H__ 13 #define __D3DX9SHADER_H__ 15 #define D3DXTX_VERSION(_Major,_Minor) (('T' << 24) | ('X' << 16) | ((_Major) << 8) | (_Minor)) 17 #define D3DXSHADER_DEBUG (1 << 0) 18 #define D3DXSHADER_SKIPVALIDATION (1 << 1) 19 #define D3DXSHADER_SKIPOPTIMIZATION (1 << 2) 20 #define D3DXSHADER_PACKMATRIX_ROWMAJOR (1 << 3) 21 #define D3DXSHADER_PACKMATRIX_COLUMNMAJOR (1 << 4) 22 #define D3DXSHADER_PARTIALPRECISION (1 << 5) 23 #define D3DXSHADER_FORCE_VS_SOFTWARE_NOOPT (1 << 6) 24 #define D3DXSHADER_FORCE_PS_SOFTWARE_NOOPT (1 << 7) 25 #define D3DXSHADER_NO_PRESHADER (1 << 8) 26 #define D3DXSHADER_AVOID_FLOW_CONTROL (1 << 9) 27 #define D3DXSHADER_PREFER_FLOW_CONTROL (1 << 10) 28 #define D3DXSHADER_ENABLE_BACKWARDS_COMPATIBILITY (1 << 12) 29 #define D3DXSHADER_IEEE_STRICTNESS (1 << 13) 30 #define D3DXSHADER_USE_LEGACY_D3DX9_31_DLL (1 << 16) 33 #define D3DXSHADER_OPTIMIZATION_LEVEL0 (1 << 14) 34 #define D3DXSHADER_OPTIMIZATION_LEVEL1 0 35 #define D3DXSHADER_OPTIMIZATION_LEVEL2 ((1 << 14) | (1 << 15)) 36 #define D3DXSHADER_OPTIMIZATION_LEVEL3 (1 << 15) 42 #define D3DXCONSTTABLE_LARGEADDRESSAWARE (1 << 17) 44 #ifndef D3DXFX_LARGEADDRESS_HANDLE 190 0xab3c758f, 0x93e, 0x4356, 0xb7, 0x62, 0x4d, 0xb1, 0x8f, 0x1b, 0x3a, 0x1);
194 #define INTERFACE ID3DXConstantTable 199 STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
200 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
201 STDMETHOD_(ULONG,
Release)(THIS) PURE;
204 STDMETHOD_(LPVOID, GetBufferPointer)(THIS) PURE;
205 STDMETHOD_(DWORD, GetBufferSize)(THIS) PURE;
210 STDMETHOD_(
UINT, GetSamplerIndex)(THIS_
D3DXHANDLE hConstant) PURE;
245 0x3e3d67f8, 0xaa7a, 0x405d, 0xa8, 0x57, 0xba, 0x1, 0xd4, 0x75, 0x84, 0x26);
248 #define INTERFACE ID3DXTextureShader 253 STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
254 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
255 STDMETHOD_(ULONG,
Release)(THIS) PURE;
258 STDMETHOD(GetFunction)(THIS_
LPD3DXBUFFER *ppFunction) PURE;
259 STDMETHOD(GetConstantBuffer)(THIS_
LPD3DXBUFFER *ppConstantBuffer) PURE;
271 STDMETHOD(SetDefaults)(THIS) PURE;
272 STDMETHOD(SetValue)(THIS_
D3DXHANDLE hConstant, LPCVOID pData,
UINT Bytes) PURE;
303 #define INTERFACE ID3DXInclude 308 STDMETHOD(Close)(THIS_ LPCVOID pData) PURE;
339 #define D3DXAssembleShaderFromFile D3DXAssembleShaderFromFileW 341 #define D3DXAssembleShaderFromFile D3DXAssembleShaderFromFileA 358 LPCWSTR pSrcResource,
366 #define D3DXAssembleShaderFromResource D3DXAssembleShaderFromResourceW 368 #define D3DXAssembleShaderFromResource D3DXAssembleShaderFromResourceA 387 LPCSTR pFunctionName,
399 LPCSTR pFunctionName,
407 #define D3DXCompileShaderFromFile D3DXCompileShaderFromFileW 409 #define D3DXCompileShaderFromFile D3DXCompileShaderFromFileA 419 LPCSTR pFunctionName,
429 LPCWSTR pSrcResource,
432 LPCSTR pFunctionName,
440 #define D3DXCompileShaderFromResource D3DXCompileShaderFromResourceW 442 #define D3DXCompileShaderFromResource D3DXCompileShaderFromResourceA 452 LPCSTR pFunctionName,
461 CONST DWORD* pShader,
462 BOOL EnableColorCode,
476 CONST DWORD* pFunction,
483 CONST DWORD* pFunction);
487 CONST DWORD* pFunction);
491 CONST DWORD* pFunction,
497 CONST DWORD* pFunction,
503 CONST DWORD* pFunction,
509 CONST DWORD* pFunction,
514 CONST DWORD* pFunction,
520 CONST DWORD* pFunction,
540 #define D3DXPreprocessShaderFromFile D3DXPreprocessShaderFromFileW 542 #define D3DXPreprocessShaderFromFile D3DXPreprocessShaderFromFileA 557 LPCWSTR pSrcResource,
564 #define D3DXPreprocessShaderFromResource D3DXPreprocessShaderFromResourceW 566 #define D3DXPreprocessShaderFromResource D3DXPreprocessShaderFromResourceA Definition: d3dx9shader.h:119
Definition: d3dx9shader.h:121
Definition: d3dx9shader.h:100
struct _D3DXSHADER_CONSTANTINFO D3DXSHADER_CONSTANTINFO
enum _D3DXINCLUDE_TYPE D3DXINCLUDE_TYPE
HRESULT WINAPI D3DXAssembleShaderFromResourceA(HMODULE hSrcModule, LPCSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXBUFFER *ppShader, LPD3DXBUFFER *ppErrorMsgs)
D3DXPARAMETER_CLASS Class
Definition: d3dx9shader.h:166
interface ID3DXConstantTable * LPD3DXCONSTANTTABLE
Definition: d3dx9shader.h:186
DWORD ConstantInfo
Definition: d3dx9shader.h:602
Definition: d3d8types.h:77
struct _D3DXCONSTANTTABLE_DESC D3DXCONSTANTTABLE_DESC
Definition: d3dx9shader.h:609
Definition: d3dx9shader.h:122
Definition: d3dx9shader.h:127
HRESULT WINAPI D3DXAssembleShader(LPCSTR pSrcData, UINT SrcDataLen, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXBUFFER *ppShader, LPD3DXBUFFER *ppErrorMsgs)
Definition: d3dx9shader.h:129
interface ID3DXTextureShader ID3DXTextureShader
Definition: d3dx9shader.h:234
Definition: d3dx9shader.h:116
Definition: d3dx9shader.h:145
Definition: glslang_tab.cpp:129
struct _D3DXMACRO * LPD3DXMACRO
UINT RegisterIndex
Definition: d3dx9shader.h:163
enum _D3DXPARAMETER_CLASS D3DXPARAMETER_CLASS
Definition: d3dx9shader.h:95
HRESULT WINAPI D3DXGetShaderConstantTable(CONST DWORD *pFunction, LPD3DXCONSTANTTABLE *ppConstantTable)
HRESULT WINAPI D3DXGetShaderConstantTableEx(CONST DWORD *pFunction, DWORD Flags, LPD3DXCONSTANTTABLE *ppConstantTable)
DWORD Creator
Definition: d3dx9shader.h:599
Definition: d3dx9shader.h:120
Definition: d3dx9shader.h:136
interface ID3DXTextureShader * LPD3DXTEXTURESHADER
Definition: d3dx9shader.h:241
Definition: d3dx9shader.h:125
HRESULT WINAPI D3DXPreprocessShaderFromResourceW(HMODULE hSrcModule, LPCWSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPD3DXBUFFER *ppShaderText, LPD3DXBUFFER *ppErrorMsgs)
Definition: d3dx9shader.h:635
Definition: d3dx9shader.h:132
DECLARE_INTERFACE(ID3DXInclude)
Definition: d3dx9shader.h:305
GLfloat f
Definition: glext.h:8207
WORD Columns
Definition: d3dx9shader.h:627
struct _D3DXCONSTANT_DESC * LPD3DXCONSTANT_DESC
struct _D3DXMACRO D3DXMACRO
UINT UsageIndex
Definition: d3dx9shader.h:66
enum _D3DXPARAMETER_CLASS * LPD3DXPARAMETER_CLASS
struct _D3DXSHADER_TYPEINFO D3DXSHADER_TYPEINFO
LPCSTR Definition
Definition: d3dx9shader.h:54
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
HRESULT WINAPI D3DXAssembleShaderFromFileW(LPCWSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXBUFFER *ppShader, LPD3DXBUFFER *ppErrorMsgs)
interface ID3DXInclude ID3DXInclude
Definition: d3dx9shader.h:299
struct _D3DXSHADER_CONSTANTTABLE * LPD3DXSHADER_CONSTANTTABLE
D3DXHANDLE * LPD3DXHANDLE
Definition: d3dx9shader.h:49
HRESULT WINAPI D3DXAssembleShaderFromFileA(LPCSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXBUFFER *ppShader, LPD3DXBUFFER *ppErrorMsgs)
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
Definition: d3dx9shader.h:124
Definition: d3dx9shader.h:78
enum _D3DXPARAMETER_TYPE D3DXPARAMETER_TYPE
HRESULT WINAPI D3DXGetShaderOutputSemantics(CONST DWORD *pFunction, D3DXSEMANTIC *pSemantics, UINT *pCount)
DECLARE_INTERFACE_(ID3DXConstantTable, IUnknown)
Definition: d3dx9shader.h:196
Definition: d3dx9shader.h:128
struct _D3DXSHADER_CONSTANTINFO * LPD3DXSHADER_CONSTANTINFO
DWORD Name
Definition: d3dx9shader.h:637
UINT Constants
Definition: d3dx9shader.h:149
Definition: d3dx8math.h:127
UINT Columns
Definition: d3dx9shader.h:170
struct _D3DXSHADER_STRUCTMEMBERINFO D3DXSHADER_STRUCTMEMBERINFO
Definition: d3dx9shader.h:123
Definition: d3dx9shader.h:292
LPCSTR Creator
Definition: d3dx9shader.h:147
HRESULT WINAPI D3DXCreateTextureShader(CONST DWORD *pFunction, LPD3DXTEXTURESHADER *ppTextureShader)
Definition: d3dx9shader.h:81
Definition: d3dx9shader.h:295
Definition: d3dx9shader.h:117
UINT Bytes
Definition: d3dx9shader.h:174
struct _D3DXCONSTANT_DESC D3DXCONSTANT_DESC
Definition: d3dx9shader.h:79
struct _D3DXSEMANTIC D3DXSEMANTIC
#define UINT_PTR
Definition: Common.h:66
DWORD Version
Definition: d3dx9shader.h:148
HRESULT WINAPI D3DXDisassembleShader(CONST DWORD *pShader, BOOL EnableColorCode, LPCSTR pComments, LPD3DXBUFFER *ppDisassembly)
HRESULT WINAPI D3DXPreprocessShaderFromResourceA(HMODULE hSrcModule, LPCSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPD3DXBUFFER *ppShaderText, LPD3DXBUFFER *ppErrorMsgs)
DWORD TypeInfo
Definition: d3dx9shader.h:638
DWORD StructMemberInfo
Definition: d3dx9shader.h:630
Definition: d3dx9shader.h:115
LPCSTR Name
Definition: d3dx9shader.h:53
DWORD DefaultValue
Definition: d3dx9shader.h:617
static bool Open(FileStreamType &fs, const char *filename)
Definition: istreamwrappertest.cpp:106
HRESULT WINAPI D3DXPreprocessShaderFromFileW(LPCWSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPD3DXBUFFER *ppShaderText, LPD3DXBUFFER *ppErrorMsgs)
HRESULT WINAPI D3DXCompileShaderFromFileW(LPCWSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPCSTR pFunctionName, LPCSTR pProfile, DWORD Flags, LPD3DXBUFFER *ppShader, LPD3DXBUFFER *ppErrorMsgs, LPD3DXCONSTANTTABLE *ppConstantTable)
DWORD Constants
Definition: d3dx9shader.h:601
Definition: d3dx9shader.h:97
Definition: d3dx9shader.h:84
WORD Reserved
Definition: d3dx9shader.h:615
interface ID3DXInclude * LPD3DXINCLUDE
Definition: d3dx9shader.h:300
LPCSTR D3DXHANDLE
Definition: d3dx9shader.h:45
Definition: d3dx9shader.h:131
DEFINE_GUID(IID_ID3DXConstantTable, 0xab3c758f, 0x93e, 0x4356, 0xb7, 0x62, 0x4d, 0xb1, 0x8f, 0x1b, 0x3a, 0x1)
Definition: d3dx9shader.h:126
HRESULT WINAPI D3DXFindShaderComment(CONST DWORD *pFunction, DWORD FourCC, LPCVOID *ppData, UINT *pSizeInBytes)
UINT StructMembers
Definition: d3dx9shader.h:172
UINT Usage
Definition: d3dx9shader.h:65
WORD Rows
Definition: d3dx9shader.h:626
HRESULT WINAPI D3DXPreprocessShader(LPCSTR pSrcData, UINT SrcDataSize, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPD3DXBUFFER *ppShaderText, LPD3DXBUFFER *ppErrorMsgs)
HRESULT WINAPI D3DXAssembleShaderFromResourceW(HMODULE hSrcModule, LPCWSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXBUFFER *ppShader, LPD3DXBUFFER *ppErrorMsgs)
enum _D3DXINCLUDE_TYPE * LPD3DXINCLUDE_TYPE
HRESULT WINAPI D3DXGetShaderInputSemantics(CONST DWORD *pFunction, D3DXSEMANTIC *pSemantics, UINT *pCount)
Definition: d3dx9shader.h:130
DWORD Size
Definition: d3dx9shader.h:598
D3DXREGISTER_SET RegisterSet
Definition: d3dx9shader.h:162
HRESULT WINAPI D3DXCompileShader(LPCSTR pSrcData, UINT SrcDataLen, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPCSTR pFunctionName, LPCSTR pProfile, DWORD Flags, LPD3DXBUFFER *ppShader, LPD3DXBUFFER *ppErrorMsgs, LPD3DXCONSTANTTABLE *ppConstantTable)
Definition: d3dx9shader.h:99
Definition: d3dx9shader.h:96
HRESULT WINAPI D3DXCompileShaderFromResourceW(HMODULE hSrcModule, LPCWSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPCSTR pFunctionName, LPCSTR pProfile, DWORD Flags, LPD3DXBUFFER *ppShader, LPD3DXBUFFER *ppErrorMsgs, LPD3DXCONSTANTTABLE *ppConstantTable)
WORD RegisterIndex
Definition: d3dx9shader.h:613
struct _D3DXSHADER_CONSTANTTABLE D3DXSHADER_CONSTANTTABLE
static INLINE ULONG Release(void *object)
Definition: dxgi_common.h:253
Definition: d3dx9shader.h:596
struct _D3DXSEMANTIC * LPD3DXSEMANTIC
DWORD TypeInfo
Definition: d3dx9shader.h:616
unsigned int BOOL
Definition: gctypes.h:51
WORD StructMembers
Definition: d3dx9shader.h:629
HRESULT WINAPI D3DXCompileShaderFromFileA(LPCSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPCSTR pFunctionName, LPCSTR pProfile, DWORD Flags, LPD3DXBUFFER *ppShader, LPD3DXBUFFER *ppErrorMsgs, LPD3DXCONSTANTTABLE *ppConstantTable)
struct IDirect3DDevice9 * LPDIRECT3DDEVICE9
Definition: d3d9.h:442
const char * pBytes
Definition: jsonsax_full.h:735
_D3DXINCLUDE_TYPE
Definition: d3dx9shader.h:289
HRESULT WINAPI D3DXPreprocessShaderFromFileA(LPCSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPD3DXBUFFER *ppShaderText, LPD3DXBUFFER *ppErrorMsgs)
Definition: d3dx9shader.h:118
LPCSTR WINAPI D3DXGetVertexShaderProfile(LPDIRECT3DDEVICE9 pDevice)
interface ID3DXBuffer * LPD3DXBUFFER
Definition: d3dx8core.h:29
struct _D3DXCONSTANTTABLE_DESC * LPD3DXCONSTANTTABLE_DESC
Definition: d3dx9shader.h:291
UINT WINAPI D3DXGetShaderSize(CONST DWORD *pFunction)
Definition: glslang_tab.cpp:135
WORD RegisterCount
Definition: d3dx9shader.h:614
WORD Class
Definition: d3dx9shader.h:624
Definition: glslang_tab.cpp:136
WORD RegisterSet
Definition: d3dx9shader.h:612
UINT Rows
Definition: d3dx9shader.h:169
D3DXPARAMETER_TYPE Type
Definition: d3dx9shader.h:167
_D3DXPARAMETER_TYPE
Definition: d3dx9shader.h:112
enum _D3DXREGISTER_SET * LPD3DXREGISTER_SET
UINT RegisterCount
Definition: d3dx9shader.h:164
LPCSTR WINAPI D3DXGetPixelShaderProfile(LPDIRECT3DDEVICE9 pDevice)
Definition: glslang_tab.cpp:133
enum _D3DXREGISTER_SET D3DXREGISTER_SET
_D3DXPARAMETER_CLASS
Definition: d3dx9shader.h:93
DWORD Name
Definition: d3dx9shader.h:611
HRESULT WINAPI D3DXCompileShaderFromResourceA(HMODULE hSrcModule, LPCSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPCSTR pFunctionName, LPCSTR pProfile, DWORD Flags, LPD3DXBUFFER *ppShader, LPD3DXBUFFER *ppErrorMsgs, LPD3DXCONSTANTTABLE *ppConstantTable)
struct _D3DXSHADER_TYPEINFO * LPD3DXSHADER_TYPEINFO
WORD Type
Definition: d3dx9shader.h:625
DWORD Target
Definition: d3dx9shader.h:604
interface ID3DXConstantTable ID3DXConstantTable
Definition: d3dx9shader.h:185
Definition: d3dx9shader.h:63
DWORD Flags
Definition: d3dx9shader.h:603
Definition: d3dx9shader.h:114
DWORD WINAPI D3DXGetShaderVersion(CONST DWORD *pFunction)
WORD Elements
Definition: d3dx9shader.h:628
struct _D3DXSHADER_STRUCTMEMBERINFO * LPD3DXSHADER_STRUCTMEMBERINFO
HRESULT WINAPI D3DXGetShaderSamplers(CONST DWORD *pFunction, LPCSTR *pSamplers, UINT *pCount)
enum _D3DXPARAMETER_TYPE * LPD3DXPARAMETER_TYPE
Definition: d3dx9shader.h:80
GLdouble n
Definition: glext.h:8396
Definition: d3dx9shader.h:133
Definition: d3dx9shader.h:98
Definition: d3dx9shader.h:622
Definition: d3dx9shader.h:103
DWORD Version
Definition: d3dx9shader.h:600
Definition: d3dx9shader.h:158
LPCVOID DefaultValue
Definition: d3dx9shader.h:175
UINT Elements
Definition: d3dx9shader.h:171
LPCSTR Name
Definition: d3dx9shader.h:160
Definition: d3dx9shader.h:51
_D3DXREGISTER_SET
Definition: d3dx9shader.h:76