13 #ifndef __D3DX9EFFECT_H__ 14 #define __D3DX9EFFECT_H__ 16 #define D3DXFX_DONOTSAVESTATE (1 << 0) 17 #define D3DXFX_DONOTSAVESHADERSTATE (1 << 1) 18 #define D3DXFX_DONOTSAVESAMPLERSTATE (1 << 2) 20 #define D3DXFX_NOT_CLONEABLE (1 << 11) 21 #define D3DXFX_LARGEADDRESSAWARE (1 << 17) 23 #define D3DX_PARAMETER_SHARED (1 << 0) 24 #define D3DX_PARAMETER_LITERAL (1 << 1) 25 #define D3DX_PARAMETER_ANNOTATION (1 << 2) 111 0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33);
115 #define INTERFACE ID3DXEffectPool 120 STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
121 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
122 STDMETHOD_(ULONG,
Release)(THIS) PURE;
137 0x17c18ac, 0x103f, 0x4417, 0x8c, 0x51, 0x6b, 0xf6, 0xef, 0x1e, 0x56, 0xbe);
141 #define INTERFACE ID3DXBaseEffect 146 STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
147 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
148 STDMETHOD_(ULONG,
Release)(THIS) PURE;
160 STDMETHOD_(
D3DXHANDLE, GetParameterBySemantic)(THIS_
D3DXHANDLE hParameter, LPCSTR pSemantic) PURE;
163 STDMETHOD_(
D3DXHANDLE, GetTechniqueByName)(THIS_ LPCSTR pName) PURE;
167 STDMETHOD_(
D3DXHANDLE, GetFunctionByName)(THIS_ LPCSTR pName) PURE;
172 STDMETHOD(SetValue)(THIS_
D3DXHANDLE hParameter, LPCVOID pData,
UINT Bytes) PURE;
173 STDMETHOD(GetValue)(THIS_
D3DXHANDLE hParameter, LPVOID pData,
UINT Bytes) PURE;
179 STDMETHOD(GetInt)(THIS_
D3DXHANDLE hParameter,
INT* pn) PURE;
202 STDMETHOD(SetString)(THIS_
D3DXHANDLE hParameter, LPCSTR pString) PURE;
203 STDMETHOD(GetString)(THIS_
D3DXHANDLE hParameter, LPCSTR* ppString) PURE;
229 0x79aab587, 0x6dbc, 0x4fa7, 0x82, 0xde, 0x37, 0xfa, 0x17, 0x81, 0xc5, 0xce);
232 #define INTERFACE ID3DXEffectStateManager 239 STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
240 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
241 STDMETHOD_(ULONG,
Release)(THIS) PURE;
253 STDMETHOD(SetLight)(THIS_ DWORD Index,
CONST D3DLIGHT9 *pLight) PURE;
254 STDMETHOD(LightEnable)(THIS_ DWORD Index,
BOOL Enable) PURE;
259 STDMETHOD(SetNPatchMode)(THIS_
FLOAT NumSegments) PURE;
260 STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE;
262 STDMETHOD(SetVertexShaderConstantF)(THIS_
UINT RegisterIndex,
CONST FLOAT *pConstantData,
UINT RegisterCount) PURE;
263 STDMETHOD(SetVertexShaderConstantI)(THIS_
UINT RegisterIndex,
CONST INT *pConstantData,
UINT RegisterCount) PURE;
264 STDMETHOD(SetVertexShaderConstantB)(THIS_
UINT RegisterIndex,
CONST BOOL *pConstantData,
UINT RegisterCount) PURE;
266 STDMETHOD(SetPixelShaderConstantF)(THIS_
UINT RegisterIndex,
CONST FLOAT *pConstantData,
UINT RegisterCount) PURE;
267 STDMETHOD(SetPixelShaderConstantI)(THIS_
UINT RegisterIndex,
CONST INT *pConstantData,
UINT RegisterCount) PURE;
268 STDMETHOD(SetPixelShaderConstantB)(THIS_
UINT RegisterIndex,
CONST BOOL *pConstantData,
UINT RegisterCount) PURE;
281 0xf6ceb4b3, 0x4e4c, 0x40dd, 0xb8, 0x83, 0x8d, 0x8d, 0xe5, 0xea, 0xc, 0xd5);
284 #define INTERFACE ID3DXEffect 289 STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
290 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
291 STDMETHOD_(ULONG,
Release)(THIS) PURE;
303 STDMETHOD_(
D3DXHANDLE, GetParameterBySemantic)(THIS_
D3DXHANDLE hParameter, LPCSTR pSemantic) PURE;
306 STDMETHOD_(
D3DXHANDLE, GetTechniqueByName)(THIS_ LPCSTR pName) PURE;
310 STDMETHOD_(
D3DXHANDLE, GetFunctionByName)(THIS_ LPCSTR pName) PURE;
315 STDMETHOD(SetValue)(THIS_
D3DXHANDLE hParameter, LPCVOID pData,
UINT Bytes) PURE;
316 STDMETHOD(GetValue)(THIS_
D3DXHANDLE hParameter, LPVOID pData,
UINT Bytes) PURE;
322 STDMETHOD(GetInt)(THIS_
D3DXHANDLE hParameter,
INT* pn) PURE;
345 STDMETHOD(SetString)(THIS_
D3DXHANDLE hParameter, LPCSTR pString) PURE;
346 STDMETHOD(GetString)(THIS_
D3DXHANDLE hParameter, LPCSTR* ppString) PURE;
362 STDMETHOD(SetTechnique)(THIS_
D3DXHANDLE hTechnique) PURE;
363 STDMETHOD_(
D3DXHANDLE, GetCurrentTechnique)(THIS) PURE;
364 STDMETHOD(ValidateTechnique)(THIS_
D3DXHANDLE hTechnique) PURE;
376 STDMETHOD(Begin)(THIS_
UINT *pPasses, DWORD Flags) PURE;
377 STDMETHOD(BeginPass)(THIS_
UINT Pass) PURE;
378 STDMETHOD(CommitChanges)(THIS) PURE;
379 STDMETHOD(EndPass)(THIS) PURE;
380 STDMETHOD(End)(THIS) PURE;
384 STDMETHOD(OnLostDevice)(THIS) PURE;
385 STDMETHOD(OnResetDevice)(THIS) PURE;
392 STDMETHOD(BeginParameterBlock)(THIS) PURE;
393 STDMETHOD_(
D3DXHANDLE, EndParameterBlock)(THIS) PURE;
394 STDMETHOD(ApplyParameterBlock)(THIS_
D3DXHANDLE hParameterBlock) PURE;
395 STDMETHOD(DeleteParameterBlock)(THIS_
D3DXHANDLE hParameterBlock) PURE;
401 STDMETHOD(SetRawValue)(THIS_
D3DXHANDLE hParameter, LPCVOID pData,
UINT ByteOffset,
UINT Bytes) PURE;
412 0x51b8a949, 0x1a31, 0x47e6, 0xbe, 0xa0, 0x4b, 0x30, 0xdb, 0x53, 0xf1, 0xe0);
416 #define INTERFACE ID3DXEffectCompiler 421 STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
422 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
423 STDMETHOD_(ULONG,
Release)(THIS) PURE;
435 STDMETHOD_(
D3DXHANDLE, GetParameterBySemantic)(THIS_
D3DXHANDLE hParameter, LPCSTR pSemantic) PURE;
438 STDMETHOD_(
D3DXHANDLE, GetTechniqueByName)(THIS_ LPCSTR pName) PURE;
442 STDMETHOD_(
D3DXHANDLE, GetFunctionByName)(THIS_ LPCSTR pName) PURE;
447 STDMETHOD(SetValue)(THIS_
D3DXHANDLE hParameter, LPCVOID pData,
UINT Bytes) PURE;
448 STDMETHOD(GetValue)(THIS_
D3DXHANDLE hParameter, LPVOID pData,
UINT Bytes) PURE;
454 STDMETHOD(GetInt)(THIS_
D3DXHANDLE hParameter,
INT* pn) PURE;
477 STDMETHOD(SetString)(THIS_
D3DXHANDLE hParameter, LPCSTR pString) PURE;
478 STDMETHOD(GetString)(THIS_
D3DXHANDLE hParameter, LPCSTR* ppString) PURE;
491 STDMETHOD(GetLiteral)(THIS_
D3DXHANDLE hParameter,
BOOL *pLiteral) PURE;
494 STDMETHOD(CompileEffect)(THIS_ DWORD Flags,
497 STDMETHOD(CompileShader)(THIS_
D3DXHANDLE hFunction, LPCSTR pTarget, DWORD Flags,
537 #define D3DXCreateEffectFromFile D3DXCreateEffectFromFileW 539 #define D3DXCreateEffectFromFile D3DXCreateEffectFromFileA 559 LPCWSTR pSrcResource,
568 #define D3DXCreateEffectFromResource D3DXCreateEffectFromResourceW 570 #define D3DXCreateEffectFromResource D3DXCreateEffectFromResourceA 592 LPCSTR pSkipConstants,
604 LPCSTR pSkipConstants,
611 #define D3DXCreateEffectFromFileEx D3DXCreateEffectFromFileExW 613 #define D3DXCreateEffectFromFileEx D3DXCreateEffectFromFileExA 624 LPCSTR pSkipConstants,
634 LPCWSTR pSrcResource,
637 LPCSTR pSkipConstants,
644 #define D3DXCreateEffectFromResourceEx D3DXCreateEffectFromResourceExW 646 #define D3DXCreateEffectFromResourceEx D3DXCreateEffectFromResourceExA 657 LPCSTR pSkipConstants,
682 #define D3DXCreateEffectCompilerFromFile D3DXCreateEffectCompilerFromFileW 684 #define D3DXCreateEffectCompilerFromFile D3DXCreateEffectCompilerFromFileA 701 LPCWSTR pSrcResource,
709 #define D3DXCreateEffectCompilerFromResource D3DXCreateEffectCompilerFromResourceW 711 #define D3DXCreateEffectCompilerFromResource D3DXCreateEffectCompilerFromResourceA 728 BOOL EnableColorCode,
HRESULT WINAPI D3DXCreateEffectPool(LPD3DXEFFECTPOOL *ppPool)
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
Definition: document.h:2010
Definition: d3dx8effect.h:51
interface ID3DXConstantTable * LPD3DXCONSTANTTABLE
Definition: d3dx9shader.h:186
D3DXPARAMETER_CLASS Class
Definition: d3dx9effect.h:49
enum _D3DTEXTURESTAGESTATETYPE D3DTEXTURESTAGESTATETYPE
Definition: d3d8types.h:77
interface ID3DXEffect ID3DXEffect
Definition: d3dx8effect.h:73
struct IDirect3DBaseTexture9 * LPDIRECT3DBASETEXTURE9
Definition: d3d9.h:949
HRESULT WINAPI D3DXCreateEffectCompilerFromFileW(LPCWSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXEFFECTCOMPILER *ppCompiler, LPD3DXBUFFER *ppParseErrors)
Definition: glslang_tab.cpp:129
enum _D3DXPARAMETER_CLASS D3DXPARAMETER_CLASS
interface ID3DXEffectCompiler * LPD3DXEFFECTCOMPILER
Definition: d3dx9effect.h:408
HRESULT WINAPI D3DXCreateEffectFromResourceW(LPDIRECT3DDEVICE9 pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXEFFECTPOOL pPool, LPD3DXEFFECT *ppEffect, LPD3DXBUFFER *ppCompilationErrors)
LPCSTR Name
Definition: d3dx8effect.h:44
Definition: d3dx8effect.h:42
UINT Annotations
Definition: d3dx9effect.h:54
GLfloat f
Definition: glext.h:8207
HRESULT WINAPI D3DXDisassembleEffect(LPD3DXEFFECT pEffect, BOOL EnableColorCode, LPD3DXBUFFER *ppDisassembly)
UINT Annotations
Definition: d3dx9effect.h:70
interface ID3DXEffectCompiler ID3DXEffectCompiler
Definition: d3dx9effect.h:402
UINT Annotations
Definition: d3dx9effect.h:82
UINT Elements
Definition: d3dx9effect.h:53
UINT Parameters
Definition: d3dx8effect.h:36
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
UINT Rows
Definition: d3dx9effect.h:51
UINT Annotations
Definition: d3dx9effect.h:97
LPCSTR Name
Definition: d3dx9effect.h:96
HRESULT WINAPI D3DXCreateEffectFromResourceExA(LPDIRECT3DDEVICE9 pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPCSTR pSkipConstants, DWORD Flags, LPD3DXEFFECTPOOL pPool, LPD3DXEFFECT *ppEffect, LPD3DXBUFFER *ppCompilationErrors)
HRESULT WINAPI D3DXCreateEffectCompiler(LPCSTR pSrcData, UINT SrcDataLen, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXEFFECTCOMPILER *ppCompiler, LPD3DXBUFFER *ppParseErrors)
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
LPCSTR Creator
Definition: d3dx9effect.h:33
CONST DWORD * pPixelShaderFunction
Definition: d3dx9effect.h:85
_Outptr_ IUnknown ** pEffect
Definition: xapofx.h:175
struct _D3DXEFFECT_DESC D3DXEFFECT_DESC
enum _D3DXPARAMETER_TYPE D3DXPARAMETER_TYPE
LPCSTR Name
Definition: d3dx8effect.h:62
Definition: d3dx8math.h:127
struct _D3DXPARAMETER_DESC D3DXPARAMETER_DESC
DWORD Flags
Definition: d3dx9effect.h:56
UINT Techniques
Definition: d3dx8effect.h:37
HRESULT WINAPI D3DXCreateEffectEx(LPDIRECT3DDEVICE9 pDevice, LPCVOID pSrcData, UINT SrcDataLen, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPCSTR pSkipConstants, DWORD Flags, LPD3DXEFFECTPOOL pPool, LPD3DXEFFECT *ppEffect, LPD3DXBUFFER *ppCompilationErrors)
Definition: ffmpeg_fft.c:42
HRESULT WINAPI D3DXCreateEffectFromFileW(LPDIRECT3DDEVICE9 pDevice, LPCWSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXEFFECTPOOL pPool, LPD3DXEFFECT *ppEffect, LPD3DXBUFFER *ppCompilationErrors)
Definition: d3d9types.h:159
struct IDirect3DVertexShader9 * LPDIRECT3DVERTEXSHADER9
Definition: d3d9.h:870
HRESULT WINAPI D3DXCreateEffectFromFileExW(LPDIRECT3DDEVICE9 pDevice, LPCWSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPCSTR pSkipConstants, DWORD Flags, LPD3DXEFFECTPOOL pPool, LPD3DXEFFECT *ppEffect, LPD3DXBUFFER *ppCompilationErrors)
interface ID3DXEffectStateManager * LPD3DXEFFECTSTATEMANAGER
Definition: d3dx9effect.h:225
interface ID3DXInclude * LPD3DXINCLUDE
Definition: d3dx9shader.h:300
LPCSTR D3DXHANDLE
Definition: d3dx9shader.h:45
interface ID3DXBaseEffect ID3DXBaseEffect
Definition: d3dx9effect.h:125
CONST DWORD * pVertexShaderFunction
Definition: d3dx9effect.h:84
HRESULT WINAPI D3DXCreateEffectFromFileA(LPDIRECT3DDEVICE9 pDevice, LPCSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXEFFECTPOOL pPool, LPD3DXEFFECT *ppEffect, LPD3DXBUFFER *ppCompilationErrors)
HRESULT WINAPI D3DXCreateEffect(LPDIRECT3DDEVICE9 pDevice, LPCVOID pSrcData, UINT SrcDataLen, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXEFFECTPOOL pPool, LPD3DXEFFECT *ppEffect, LPD3DXBUFFER *ppCompilationErrors)
UINT Functions
Definition: d3dx9effect.h:36
HRESULT WINAPI D3DXCreateEffectFromResourceExW(LPDIRECT3DDEVICE9 pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPCSTR pSkipConstants, DWORD Flags, LPD3DXEFFECTPOOL pPool, LPD3DXEFFECT *ppEffect, LPD3DXBUFFER *ppCompilationErrors)
UINT Passes
Definition: d3dx8effect.h:55
struct IDirect3DPixelShader9 * LPDIRECT3DPIXELSHADER9
Definition: d3d9.h:903
LPCSTR Name
Definition: d3dx8effect.h:53
UINT Columns
Definition: d3dx9effect.h:52
interface ID3DXEffectStateManager ID3DXEffectStateManager
Definition: d3dx9effect.h:215
std::pair< Type, bool > State
Definition: spirv_reflect.cpp:33
HRESULT WINAPI D3DXCreateEffectCompilerFromResourceA(HMODULE hSrcModule, LPCSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXEFFECTCOMPILER *ppCompiler, LPD3DXBUFFER *ppParseErrors)
static INLINE ULONG Release(void *object)
Definition: dxgi_common.h:253
struct _D3DXFUNCTION_DESC D3DXFUNCTION_DESC
unsigned int BOOL
Definition: gctypes.h:51
struct IDirect3DDevice9 * LPDIRECT3DDEVICE9
Definition: d3d9.h:442
#define Literal
Definition: LzmaDec.c:106
Stage
Definition: glslang.hpp:10
interface ID3DXBuffer * LPD3DXBUFFER
Definition: d3dx8core.h:29
interface ID3DXEffect * LPD3DXEFFECT
Definition: d3dx8effect.h:74
struct _D3DXPASS_DESC D3DXPASS_DESC
D3DXPARAMETER_TYPE Type
Definition: d3dx9effect.h:50
Definition: d3dx8effect.h:34
Definition: glslang_tab.cpp:135
DEFINE_GUID(IID_ID3DXEffectPool, 0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33)
Definition: glslang_tab.cpp:136
DECLARE_INTERFACE_(ID3DXEffectPool, IUnknown)
Definition: d3dx9effect.h:117
HRESULT WINAPI D3DXCreateEffectFromFileExA(LPDIRECT3DDEVICE9 pDevice, LPCSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, LPCSTR pSkipConstants, DWORD Flags, LPD3DXEFFECTPOOL pPool, LPD3DXEFFECT *ppEffect, LPD3DXBUFFER *ppCompilationErrors)
Definition: d3dx8effect.h:60
Definition: d3dx9effect.h:94
Definition: glslang_tab.cpp:133
interface ID3DXEffect * LPD3DXEFFECT
Definition: d3dx9effect.h:277
enum _D3DRENDERSTATETYPE D3DRENDERSTATETYPE
Type
Type of JSON value.
Definition: rapidjson.h:603
interface ID3DXEffectPool * LPD3DXEFFECTPOOL
Definition: d3dx9effect.h:107
interface ID3DXEffectPool ID3DXEffectPool
Definition: d3dx9effect.h:106
Definition: d3d9types.h:174
enum _D3DTRANSFORMSTATETYPE D3DTRANSFORMSTATETYPE
UINT Bytes
Definition: d3dx9effect.h:57
interface ID3DXBaseEffect * LPD3DXBASEEFFECT
Definition: d3dx9effect.h:133
HRESULT WINAPI D3DXCreateEffectCompilerFromFileA(LPCSTR pSrcFile, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXEFFECTCOMPILER *ppCompiler, LPD3DXBUFFER *ppParseErrors)
GLdouble n
Definition: glext.h:8396
UINT StructMembers
Definition: d3dx9effect.h:55
HRESULT WINAPI D3DXCreateEffectFromResourceA(LPDIRECT3DDEVICE9 pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXEFFECTPOOL pPool, LPD3DXEFFECT *ppEffect, LPD3DXBUFFER *ppCompilationErrors)
HRESULT WINAPI D3DXCreateEffectCompilerFromResourceW(HMODULE hSrcModule, LPCWSTR pSrcResource, CONST D3DXMACRO *pDefines, LPD3DXINCLUDE pInclude, DWORD Flags, LPD3DXEFFECTCOMPILER *ppCompiler, LPD3DXBUFFER *ppParseErrors)
struct _D3DXTECHNIQUE_DESC D3DXTECHNIQUE_DESC
Definition: d3dx9shader.h:51
enum _D3DSAMPLERSTATETYPE D3DSAMPLERSTATETYPE
LPCSTR Semantic
Definition: d3dx9effect.h:48