2016-04-23 18:17:28 +02:00
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
*
|
|
|
|
* File: d3dx9effect.h
|
|
|
|
* Content: D3DX effect types and Shaders
|
|
|
|
*
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
#include "d3dx9.h"
|
|
|
|
|
|
|
|
#ifndef __D3DX9EFFECT_H__
|
|
|
|
#define __D3DX9EFFECT_H__
|
|
|
|
|
|
|
|
#define D3DXFX_DONOTSAVESTATE (1 << 0)
|
|
|
|
#define D3DXFX_DONOTSAVESHADERSTATE (1 << 1)
|
|
|
|
#define D3DXFX_DONOTSAVESAMPLERSTATE (1 << 2)
|
|
|
|
|
|
|
|
#define D3DXFX_NOT_CLONEABLE (1 << 11)
|
|
|
|
#define D3DXFX_LARGEADDRESSAWARE (1 << 17)
|
|
|
|
|
|
|
|
#define D3DX_PARAMETER_SHARED (1 << 0)
|
|
|
|
#define D3DX_PARAMETER_LITERAL (1 << 1)
|
|
|
|
#define D3DX_PARAMETER_ANNOTATION (1 << 2)
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* D3DXEFFECT_DESC:
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
typedef struct _D3DXEFFECT_DESC
|
|
|
|
{
|
2018-02-03 13:11:31 +01:00
|
|
|
LPCSTR Creator; /* Creator string */
|
|
|
|
UINT Parameters; /* Number of parameters */
|
|
|
|
UINT Techniques; /* Number of techniques */
|
|
|
|
UINT Functions; /* Number of function entrypoints */
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
} D3DXEFFECT_DESC;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* D3DXPARAMETER_DESC:
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
typedef struct _D3DXPARAMETER_DESC
|
|
|
|
{
|
2018-02-03 13:11:31 +01:00
|
|
|
LPCSTR Name; /* Parameter name */
|
|
|
|
LPCSTR Semantic; /* Parameter semantic */
|
|
|
|
D3DXPARAMETER_CLASS Class; /* Class */
|
|
|
|
D3DXPARAMETER_TYPE Type; /* Component type */
|
|
|
|
UINT Rows; /* Number of rows */
|
|
|
|
UINT Columns; /* Number of columns */
|
|
|
|
UINT Elements; /* Number of array elements */
|
|
|
|
UINT Annotations; /* Number of annotations */
|
|
|
|
UINT StructMembers; /* Number of structure member sub-parameters */
|
|
|
|
DWORD Flags; /* D3DX_PARAMETER_* flags */
|
|
|
|
UINT Bytes; /* Parameter size, in bytes */
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
} D3DXPARAMETER_DESC;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* D3DXTECHNIQUE_DESC:
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
typedef struct _D3DXTECHNIQUE_DESC
|
|
|
|
{
|
2018-02-03 13:11:31 +01:00
|
|
|
LPCSTR Name; /* Technique name */
|
|
|
|
UINT Passes; /* Number of passes */
|
|
|
|
UINT Annotations; /* Number of annotations */
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
} D3DXTECHNIQUE_DESC;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* D3DXPASS_DESC:
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
typedef struct _D3DXPASS_DESC
|
|
|
|
{
|
2018-02-03 13:11:31 +01:00
|
|
|
LPCSTR Name; /* Pass name */
|
|
|
|
UINT Annotations; /* Number of annotations */
|
2016-04-23 18:17:28 +02:00
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
CONST DWORD *pVertexShaderFunction; /* Vertex shader function */
|
|
|
|
CONST DWORD *pPixelShaderFunction; /* Pixel shader function */
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
} D3DXPASS_DESC;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* D3DXFUNCTION_DESC:
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
typedef struct _D3DXFUNCTION_DESC
|
|
|
|
{
|
2018-02-03 13:11:31 +01:00
|
|
|
LPCSTR Name; /* Function name */
|
|
|
|
UINT Annotations; /* Number of annotations */
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
} D3DXFUNCTION_DESC;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* ID3DXEffectPool
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
typedef interface ID3DXEffectPool ID3DXEffectPool;
|
|
|
|
typedef interface ID3DXEffectPool *LPD3DXEFFECTPOOL;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* {9537AB04-3250-412e-8213-FCD2F8677933} */
|
2017-12-11 23:55:31 -08:00
|
|
|
DEFINE_GUID(IID_ID3DXEffectPool,
|
2016-04-23 18:17:28 +02:00
|
|
|
0x9537ab04, 0x3250, 0x412e, 0x82, 0x13, 0xfc, 0xd2, 0xf8, 0x67, 0x79, 0x33);
|
|
|
|
|
|
|
|
#undef INTERFACE
|
|
|
|
#define INTERFACE ID3DXEffectPool
|
|
|
|
|
|
|
|
DECLARE_INTERFACE_(ID3DXEffectPool, IUnknown)
|
|
|
|
{
|
2018-02-03 13:11:31 +01:00
|
|
|
/* IUnknown */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
|
|
|
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* No public methods */
|
2016-04-23 18:17:28 +02:00
|
|
|
};
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* ID3DXBaseEffect
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
typedef interface ID3DXBaseEffect ID3DXBaseEffect;
|
|
|
|
typedef interface ID3DXBaseEffect *LPD3DXBASEEFFECT;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* {017C18AC-103F-4417-8C51-6BF6EF1E56BE} */
|
2017-12-11 23:55:31 -08:00
|
|
|
DEFINE_GUID(IID_ID3DXBaseEffect,
|
2016-04-23 18:17:28 +02:00
|
|
|
0x17c18ac, 0x103f, 0x4417, 0x8c, 0x51, 0x6b, 0xf6, 0xef, 0x1e, 0x56, 0xbe);
|
|
|
|
|
|
|
|
#undef INTERFACE
|
|
|
|
#define INTERFACE ID3DXBaseEffect
|
|
|
|
|
|
|
|
DECLARE_INTERFACE_(ID3DXBaseEffect, IUnknown)
|
|
|
|
{
|
2018-02-03 13:11:31 +01:00
|
|
|
/* IUnknown */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
|
|
|
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Descs */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(GetDesc)(THIS_ D3DXEFFECT_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetParameterDesc)(THIS_ D3DXHANDLE hParameter, D3DXPARAMETER_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetTechniqueDesc)(THIS_ D3DXHANDLE hTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetPassDesc)(THIS_ D3DXHANDLE hPass, D3DXPASS_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetFunctionDesc)(THIS_ D3DXHANDLE hShader, D3DXFUNCTION_DESC* pDesc) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Handle operations */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameter)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameterByName)(THIS_ D3DXHANDLE hParameter, LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameterBySemantic)(THIS_ D3DXHANDLE hParameter, LPCSTR pSemantic) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameterElement)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetTechnique)(THIS_ UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetTechniqueByName)(THIS_ LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetPass)(THIS_ D3DXHANDLE hTechnique, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetPassByName)(THIS_ D3DXHANDLE hTechnique, LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetFunction)(THIS_ UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetFunctionByName)(THIS_ LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetAnnotation)(THIS_ D3DXHANDLE hObject, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetAnnotationByName)(THIS_ D3DXHANDLE hObject, LPCSTR pName) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Get/Set Parameters */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(SetValue)(THIS_ D3DXHANDLE hParameter, LPCVOID pData, UINT Bytes) PURE;
|
|
|
|
STDMETHOD(GetValue)(THIS_ D3DXHANDLE hParameter, LPVOID pData, UINT Bytes) PURE;
|
|
|
|
STDMETHOD(SetBool)(THIS_ D3DXHANDLE hParameter, BOOL b) PURE;
|
|
|
|
STDMETHOD(GetBool)(THIS_ D3DXHANDLE hParameter, BOOL* pb) PURE;
|
|
|
|
STDMETHOD(SetBoolArray)(THIS_ D3DXHANDLE hParameter, CONST BOOL* pb, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetBoolArray)(THIS_ D3DXHANDLE hParameter, BOOL* pb, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetInt)(THIS_ D3DXHANDLE hParameter, INT n) PURE;
|
|
|
|
STDMETHOD(GetInt)(THIS_ D3DXHANDLE hParameter, INT* pn) PURE;
|
|
|
|
STDMETHOD(SetIntArray)(THIS_ D3DXHANDLE hParameter, CONST INT* pn, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetIntArray)(THIS_ D3DXHANDLE hParameter, INT* pn, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT f) PURE;
|
|
|
|
STDMETHOD(GetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT* pf) PURE;
|
|
|
|
STDMETHOD(SetFloatArray)(THIS_ D3DXHANDLE hParameter, CONST FLOAT* pf, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetFloatArray)(THIS_ D3DXHANDLE hParameter, FLOAT* pf, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetVector)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector) PURE;
|
|
|
|
STDMETHOD(GetVector)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector) PURE;
|
|
|
|
STDMETHOD(SetVectorArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetVectorArray)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrix)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(GetMatrix)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(SetMatrixArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(GetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(SetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetString)(THIS_ D3DXHANDLE hParameter, LPCSTR pString) PURE;
|
|
|
|
STDMETHOD(GetString)(THIS_ D3DXHANDLE hParameter, LPCSTR* ppString) PURE;
|
|
|
|
STDMETHOD(SetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 pTexture) PURE;
|
|
|
|
STDMETHOD(GetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 *ppTexture) PURE;
|
|
|
|
STDMETHOD(GetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 *ppPShader) PURE;
|
|
|
|
STDMETHOD(GetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 *ppVShader) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Set Range of an Array to pass to device
|
2019-02-03 15:49:35 -08:00
|
|
|
* Useful for sending only a subrange of an
|
2018-02-03 13:11:31 +01:00
|
|
|
* array down to the device
|
|
|
|
*/
|
2017-12-11 23:55:31 -08:00
|
|
|
STDMETHOD(SetArrayRange)(THIS_ D3DXHANDLE hParameter, UINT uStart, UINT uEnd) PURE;
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* ID3DXEffectStateManager:
|
|
|
|
* ------------------------
|
|
|
|
* This is a user implemented interface that can be used to manage device
|
|
|
|
* state changes made by an Effect.
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
typedef interface ID3DXEffectStateManager ID3DXEffectStateManager;
|
|
|
|
typedef interface ID3DXEffectStateManager *LPD3DXEFFECTSTATEMANAGER;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* {79AAB587-6DBC-4fa7-82DE-37FA1781C5CE} */
|
2017-12-11 23:55:31 -08:00
|
|
|
DEFINE_GUID(IID_ID3DXEffectStateManager,
|
2016-04-23 18:17:28 +02:00
|
|
|
0x79aab587, 0x6dbc, 0x4fa7, 0x82, 0xde, 0x37, 0xfa, 0x17, 0x81, 0xc5, 0xce);
|
|
|
|
|
|
|
|
#undef INTERFACE
|
|
|
|
#define INTERFACE ID3DXEffectStateManager
|
|
|
|
|
|
|
|
DECLARE_INTERFACE_(ID3DXEffectStateManager, IUnknown)
|
|
|
|
{
|
2018-02-03 13:11:31 +01:00
|
|
|
/* The user must correctly implement QueryInterface, AddRef, and Release. */
|
2016-04-23 18:17:28 +02:00
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* IUnknown */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
|
|
|
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* The following methods are called by the Effect when it wants to make
|
|
|
|
* the corresponding device call. Note that:
|
|
|
|
* 1. Users manage the state and are therefore responsible for making the
|
|
|
|
* the corresponding device calls themselves inside their callbacks.
|
|
|
|
* 2. Effects pay attention to the return values of the callbacks, and so
|
|
|
|
* users must pay attention to what they return in their callbacks.
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX *pMatrix) PURE;
|
|
|
|
STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL9 *pMaterial) PURE;
|
|
|
|
STDMETHOD(SetLight)(THIS_ DWORD Index, CONST D3DLIGHT9 *pLight) PURE;
|
|
|
|
STDMETHOD(LightEnable)(THIS_ DWORD Index, BOOL Enable) PURE;
|
|
|
|
STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State, DWORD Value) PURE;
|
|
|
|
STDMETHOD(SetTexture)(THIS_ DWORD Stage, LPDIRECT3DBASETEXTURE9 pTexture) PURE;
|
|
|
|
STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value) PURE;
|
|
|
|
STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value) PURE;
|
|
|
|
STDMETHOD(SetNPatchMode)(THIS_ FLOAT NumSegments) PURE;
|
|
|
|
STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE;
|
|
|
|
STDMETHOD(SetVertexShader)(THIS_ LPDIRECT3DVERTEXSHADER9 pShader) PURE;
|
|
|
|
STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT RegisterIndex, CONST FLOAT *pConstantData, UINT RegisterCount) PURE;
|
|
|
|
STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT RegisterIndex, CONST INT *pConstantData, UINT RegisterCount) PURE;
|
|
|
|
STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT RegisterIndex, CONST BOOL *pConstantData, UINT RegisterCount) PURE;
|
|
|
|
STDMETHOD(SetPixelShader)(THIS_ LPDIRECT3DPIXELSHADER9 pShader) PURE;
|
|
|
|
STDMETHOD(SetPixelShaderConstantF)(THIS_ UINT RegisterIndex, CONST FLOAT *pConstantData, UINT RegisterCount) PURE;
|
|
|
|
STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT RegisterIndex, CONST INT *pConstantData, UINT RegisterCount) PURE;
|
|
|
|
STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT RegisterIndex, CONST BOOL *pConstantData, UINT RegisterCount) PURE;
|
|
|
|
};
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* ID3DXEffect
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
typedef interface ID3DXEffect ID3DXEffect;
|
|
|
|
typedef interface ID3DXEffect *LPD3DXEFFECT;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* {F6CEB4B3-4E4C-40dd-B883-8D8DE5EA0CD5} */
|
2017-12-11 23:55:31 -08:00
|
|
|
DEFINE_GUID(IID_ID3DXEffect,
|
2016-04-23 18:17:28 +02:00
|
|
|
0xf6ceb4b3, 0x4e4c, 0x40dd, 0xb8, 0x83, 0x8d, 0x8d, 0xe5, 0xea, 0xc, 0xd5);
|
|
|
|
|
|
|
|
#undef INTERFACE
|
|
|
|
#define INTERFACE ID3DXEffect
|
|
|
|
|
|
|
|
DECLARE_INTERFACE_(ID3DXEffect, ID3DXBaseEffect)
|
|
|
|
{
|
2018-02-03 13:11:31 +01:00
|
|
|
/* ID3DXBaseEffect */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
|
|
|
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Descs */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(GetDesc)(THIS_ D3DXEFFECT_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetParameterDesc)(THIS_ D3DXHANDLE hParameter, D3DXPARAMETER_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetTechniqueDesc)(THIS_ D3DXHANDLE hTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetPassDesc)(THIS_ D3DXHANDLE hPass, D3DXPASS_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetFunctionDesc)(THIS_ D3DXHANDLE hShader, D3DXFUNCTION_DESC* pDesc) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Handle operations */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameter)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameterByName)(THIS_ D3DXHANDLE hParameter, LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameterBySemantic)(THIS_ D3DXHANDLE hParameter, LPCSTR pSemantic) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameterElement)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetTechnique)(THIS_ UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetTechniqueByName)(THIS_ LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetPass)(THIS_ D3DXHANDLE hTechnique, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetPassByName)(THIS_ D3DXHANDLE hTechnique, LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetFunction)(THIS_ UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetFunctionByName)(THIS_ LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetAnnotation)(THIS_ D3DXHANDLE hObject, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetAnnotationByName)(THIS_ D3DXHANDLE hObject, LPCSTR pName) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Get/Set Parameters */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(SetValue)(THIS_ D3DXHANDLE hParameter, LPCVOID pData, UINT Bytes) PURE;
|
|
|
|
STDMETHOD(GetValue)(THIS_ D3DXHANDLE hParameter, LPVOID pData, UINT Bytes) PURE;
|
|
|
|
STDMETHOD(SetBool)(THIS_ D3DXHANDLE hParameter, BOOL b) PURE;
|
|
|
|
STDMETHOD(GetBool)(THIS_ D3DXHANDLE hParameter, BOOL* pb) PURE;
|
|
|
|
STDMETHOD(SetBoolArray)(THIS_ D3DXHANDLE hParameter, CONST BOOL* pb, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetBoolArray)(THIS_ D3DXHANDLE hParameter, BOOL* pb, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetInt)(THIS_ D3DXHANDLE hParameter, INT n) PURE;
|
|
|
|
STDMETHOD(GetInt)(THIS_ D3DXHANDLE hParameter, INT* pn) PURE;
|
|
|
|
STDMETHOD(SetIntArray)(THIS_ D3DXHANDLE hParameter, CONST INT* pn, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetIntArray)(THIS_ D3DXHANDLE hParameter, INT* pn, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT f) PURE;
|
|
|
|
STDMETHOD(GetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT* pf) PURE;
|
|
|
|
STDMETHOD(SetFloatArray)(THIS_ D3DXHANDLE hParameter, CONST FLOAT* pf, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetFloatArray)(THIS_ D3DXHANDLE hParameter, FLOAT* pf, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetVector)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector) PURE;
|
|
|
|
STDMETHOD(GetVector)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector) PURE;
|
|
|
|
STDMETHOD(SetVectorArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetVectorArray)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrix)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(GetMatrix)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(SetMatrixArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(GetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(SetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetString)(THIS_ D3DXHANDLE hParameter, LPCSTR pString) PURE;
|
|
|
|
STDMETHOD(GetString)(THIS_ D3DXHANDLE hParameter, LPCSTR* ppString) PURE;
|
|
|
|
STDMETHOD(SetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 pTexture) PURE;
|
|
|
|
STDMETHOD(GetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 *ppTexture) PURE;
|
|
|
|
STDMETHOD(GetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 *ppPShader) PURE;
|
|
|
|
STDMETHOD(GetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 *ppVShader) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Set Range of an Array to pass to device
|
|
|
|
* Useful for sending only a subrange of an array down to the device
|
|
|
|
*/
|
2017-12-11 23:55:31 -08:00
|
|
|
STDMETHOD(SetArrayRange)(THIS_ D3DXHANDLE hParameter, UINT uStart, UINT uEnd) PURE;
|
2018-02-03 13:11:31 +01:00
|
|
|
/* ID3DXBaseEffect */
|
2017-12-11 23:55:31 -08:00
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Pool */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(GetPool)(THIS_ LPD3DXEFFECTPOOL* ppPool) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Selecting and setting a technique */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(SetTechnique)(THIS_ D3DXHANDLE hTechnique) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetCurrentTechnique)(THIS) PURE;
|
|
|
|
STDMETHOD(ValidateTechnique)(THIS_ D3DXHANDLE hTechnique) PURE;
|
|
|
|
STDMETHOD(FindNextValidTechnique)(THIS_ D3DXHANDLE hTechnique, D3DXHANDLE *pTechnique) PURE;
|
|
|
|
STDMETHOD_(BOOL, IsParameterUsed)(THIS_ D3DXHANDLE hParameter, D3DXHANDLE hTechnique) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Using current technique
|
|
|
|
* Begin starts active technique
|
|
|
|
* BeginPass begins a pass
|
|
|
|
* CommitChanges updates changes to any set calls in the pass. This should be called before
|
|
|
|
* any DrawPrimitive call to d3d
|
|
|
|
* EndPass ends a pass
|
|
|
|
* End ends active technique
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(Begin)(THIS_ UINT *pPasses, DWORD Flags) PURE;
|
|
|
|
STDMETHOD(BeginPass)(THIS_ UINT Pass) PURE;
|
|
|
|
STDMETHOD(CommitChanges)(THIS) PURE;
|
|
|
|
STDMETHOD(EndPass)(THIS) PURE;
|
|
|
|
STDMETHOD(End)(THIS) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Managing D3D Device */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(GetDevice)(THIS_ LPDIRECT3DDEVICE9* ppDevice) PURE;
|
|
|
|
STDMETHOD(OnLostDevice)(THIS) PURE;
|
|
|
|
STDMETHOD(OnResetDevice)(THIS) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Logging device calls */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(SetStateManager)(THIS_ LPD3DXEFFECTSTATEMANAGER pManager) PURE;
|
|
|
|
STDMETHOD(GetStateManager)(THIS_ LPD3DXEFFECTSTATEMANAGER *ppManager) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Parameter blocks */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(BeginParameterBlock)(THIS) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, EndParameterBlock)(THIS) PURE;
|
|
|
|
STDMETHOD(ApplyParameterBlock)(THIS_ D3DXHANDLE hParameterBlock) PURE;
|
|
|
|
STDMETHOD(DeleteParameterBlock)(THIS_ D3DXHANDLE hParameterBlock) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Cloning */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(CloneEffect)(THIS_ LPDIRECT3DDEVICE9 pDevice, LPD3DXEFFECT* ppEffect) PURE;
|
2017-12-11 23:55:31 -08:00
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Fast path for setting variables directly in ID3DXEffect */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(SetRawValue)(THIS_ D3DXHANDLE hParameter, LPCVOID pData, UINT ByteOffset, UINT Bytes) PURE;
|
|
|
|
};
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* ID3DXEffectCompiler
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
typedef interface ID3DXEffectCompiler ID3DXEffectCompiler;
|
|
|
|
typedef interface ID3DXEffectCompiler *LPD3DXEFFECTCOMPILER;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* {51B8A949-1A31-47e6-BEA0-4B30DB53F1E0} */
|
2017-12-11 23:55:31 -08:00
|
|
|
DEFINE_GUID(IID_ID3DXEffectCompiler,
|
2016-04-23 18:17:28 +02:00
|
|
|
0x51b8a949, 0x1a31, 0x47e6, 0xbe, 0xa0, 0x4b, 0x30, 0xdb, 0x53, 0xf1, 0xe0);
|
|
|
|
|
|
|
|
#undef INTERFACE
|
|
|
|
#define INTERFACE ID3DXEffectCompiler
|
|
|
|
|
|
|
|
DECLARE_INTERFACE_(ID3DXEffectCompiler, ID3DXBaseEffect)
|
|
|
|
{
|
2018-02-03 13:11:31 +01:00
|
|
|
/* ID3DXBaseEffect */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
|
|
|
|
STDMETHOD_(ULONG, AddRef)(THIS) PURE;
|
|
|
|
STDMETHOD_(ULONG, Release)(THIS) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Descs */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(GetDesc)(THIS_ D3DXEFFECT_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetParameterDesc)(THIS_ D3DXHANDLE hParameter, D3DXPARAMETER_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetTechniqueDesc)(THIS_ D3DXHANDLE hTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetPassDesc)(THIS_ D3DXHANDLE hPass, D3DXPASS_DESC* pDesc) PURE;
|
|
|
|
STDMETHOD(GetFunctionDesc)(THIS_ D3DXHANDLE hShader, D3DXFUNCTION_DESC* pDesc) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Handle operations */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameter)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameterByName)(THIS_ D3DXHANDLE hParameter, LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameterBySemantic)(THIS_ D3DXHANDLE hParameter, LPCSTR pSemantic) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetParameterElement)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetTechnique)(THIS_ UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetTechniqueByName)(THIS_ LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetPass)(THIS_ D3DXHANDLE hTechnique, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetPassByName)(THIS_ D3DXHANDLE hTechnique, LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetFunction)(THIS_ UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetFunctionByName)(THIS_ LPCSTR pName) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetAnnotation)(THIS_ D3DXHANDLE hObject, UINT Index) PURE;
|
|
|
|
STDMETHOD_(D3DXHANDLE, GetAnnotationByName)(THIS_ D3DXHANDLE hObject, LPCSTR pName) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Get/Set Parameters */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(SetValue)(THIS_ D3DXHANDLE hParameter, LPCVOID pData, UINT Bytes) PURE;
|
|
|
|
STDMETHOD(GetValue)(THIS_ D3DXHANDLE hParameter, LPVOID pData, UINT Bytes) PURE;
|
|
|
|
STDMETHOD(SetBool)(THIS_ D3DXHANDLE hParameter, BOOL b) PURE;
|
|
|
|
STDMETHOD(GetBool)(THIS_ D3DXHANDLE hParameter, BOOL* pb) PURE;
|
|
|
|
STDMETHOD(SetBoolArray)(THIS_ D3DXHANDLE hParameter, CONST BOOL* pb, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetBoolArray)(THIS_ D3DXHANDLE hParameter, BOOL* pb, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetInt)(THIS_ D3DXHANDLE hParameter, INT n) PURE;
|
|
|
|
STDMETHOD(GetInt)(THIS_ D3DXHANDLE hParameter, INT* pn) PURE;
|
|
|
|
STDMETHOD(SetIntArray)(THIS_ D3DXHANDLE hParameter, CONST INT* pn, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetIntArray)(THIS_ D3DXHANDLE hParameter, INT* pn, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT f) PURE;
|
|
|
|
STDMETHOD(GetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT* pf) PURE;
|
|
|
|
STDMETHOD(SetFloatArray)(THIS_ D3DXHANDLE hParameter, CONST FLOAT* pf, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetFloatArray)(THIS_ D3DXHANDLE hParameter, FLOAT* pf, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetVector)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector) PURE;
|
|
|
|
STDMETHOD(GetVector)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector) PURE;
|
|
|
|
STDMETHOD(SetVectorArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetVectorArray)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrix)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(GetMatrix)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(SetMatrixArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(GetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE;
|
|
|
|
STDMETHOD(SetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(GetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE;
|
|
|
|
STDMETHOD(SetString)(THIS_ D3DXHANDLE hParameter, LPCSTR pString) PURE;
|
|
|
|
STDMETHOD(GetString)(THIS_ D3DXHANDLE hParameter, LPCSTR* ppString) PURE;
|
|
|
|
STDMETHOD(SetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 pTexture) PURE;
|
|
|
|
STDMETHOD(GetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 *ppTexture) PURE;
|
|
|
|
STDMETHOD(GetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 *ppPShader) PURE;
|
|
|
|
STDMETHOD(GetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 *ppVShader) PURE;
|
2017-12-11 23:55:31 -08:00
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Set Range of an Array to pass to device
|
|
|
|
* Useful for sending only a subrange of an array down to the device */
|
2017-12-11 23:55:31 -08:00
|
|
|
STDMETHOD(SetArrayRange)(THIS_ D3DXHANDLE hParameter, UINT uStart, UINT uEnd) PURE;
|
2016-04-23 18:17:28 +02:00
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* ID3DXBaseEffect
|
|
|
|
* Parameter sharing, specialization, and information */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(SetLiteral)(THIS_ D3DXHANDLE hParameter, BOOL Literal) PURE;
|
|
|
|
STDMETHOD(GetLiteral)(THIS_ D3DXHANDLE hParameter, BOOL *pLiteral) PURE;
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/* Compilation */
|
2016-04-23 18:17:28 +02:00
|
|
|
STDMETHOD(CompileEffect)(THIS_ DWORD Flags,
|
|
|
|
LPD3DXBUFFER* ppEffect, LPD3DXBUFFER* ppErrorMsgs) PURE;
|
|
|
|
|
|
|
|
STDMETHOD(CompileShader)(THIS_ D3DXHANDLE hFunction, LPCSTR pTarget, DWORD Flags,
|
|
|
|
LPD3DXBUFFER* ppShader, LPD3DXBUFFER* ppErrorMsgs, LPD3DXCONSTANTTABLE* ppConstantTable) PURE;
|
|
|
|
};
|
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
/*
|
|
|
|
* APIs
|
|
|
|
*/
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
2017-04-19 19:11:58 +02:00
|
|
|
#endif
|
2016-04-23 18:17:28 +02:00
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectPool(
|
|
|
|
LPD3DXEFFECTPOOL* ppPool);
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectFromFileA(
|
|
|
|
LPDIRECT3DDEVICE9 pDevice,
|
|
|
|
LPCSTR pSrcFile,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTPOOL pPool,
|
|
|
|
LPD3DXEFFECT* ppEffect,
|
|
|
|
LPD3DXBUFFER* ppCompilationErrors);
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectFromFileW(
|
|
|
|
LPDIRECT3DDEVICE9 pDevice,
|
|
|
|
LPCWSTR pSrcFile,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTPOOL pPool,
|
|
|
|
LPD3DXEFFECT* ppEffect,
|
|
|
|
LPD3DXBUFFER* ppCompilationErrors);
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
#define D3DXCreateEffectFromFile D3DXCreateEffectFromFileW
|
|
|
|
#else
|
|
|
|
#define D3DXCreateEffectFromFile D3DXCreateEffectFromFileA
|
|
|
|
#endif
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectFromResourceA(
|
|
|
|
LPDIRECT3DDEVICE9 pDevice,
|
|
|
|
HMODULE hSrcModule,
|
|
|
|
LPCSTR pSrcResource,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTPOOL pPool,
|
|
|
|
LPD3DXEFFECT* ppEffect,
|
|
|
|
LPD3DXBUFFER* ppCompilationErrors);
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectFromResourceW(
|
|
|
|
LPDIRECT3DDEVICE9 pDevice,
|
|
|
|
HMODULE hSrcModule,
|
|
|
|
LPCWSTR pSrcResource,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTPOOL pPool,
|
|
|
|
LPD3DXEFFECT* ppEffect,
|
|
|
|
LPD3DXBUFFER* ppCompilationErrors);
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
#define D3DXCreateEffectFromResource D3DXCreateEffectFromResourceW
|
|
|
|
#else
|
|
|
|
#define D3DXCreateEffectFromResource D3DXCreateEffectFromResourceA
|
|
|
|
#endif
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffect(
|
|
|
|
LPDIRECT3DDEVICE9 pDevice,
|
|
|
|
LPCVOID pSrcData,
|
|
|
|
UINT SrcDataLen,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTPOOL pPool,
|
|
|
|
LPD3DXEFFECT* ppEffect,
|
|
|
|
LPD3DXBUFFER* ppCompilationErrors);
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectFromFileExA(
|
|
|
|
LPDIRECT3DDEVICE9 pDevice,
|
|
|
|
LPCSTR pSrcFile,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
2017-12-11 23:55:31 -08:00
|
|
|
LPCSTR pSkipConstants,
|
2016-04-23 18:17:28 +02:00
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTPOOL pPool,
|
|
|
|
LPD3DXEFFECT* ppEffect,
|
|
|
|
LPD3DXBUFFER* ppCompilationErrors);
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectFromFileExW(
|
|
|
|
LPDIRECT3DDEVICE9 pDevice,
|
|
|
|
LPCWSTR pSrcFile,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
2017-12-11 23:55:31 -08:00
|
|
|
LPCSTR pSkipConstants,
|
2016-04-23 18:17:28 +02:00
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTPOOL pPool,
|
|
|
|
LPD3DXEFFECT* ppEffect,
|
|
|
|
LPD3DXBUFFER* ppCompilationErrors);
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
#define D3DXCreateEffectFromFileEx D3DXCreateEffectFromFileExW
|
|
|
|
#else
|
|
|
|
#define D3DXCreateEffectFromFileEx D3DXCreateEffectFromFileExA
|
|
|
|
#endif
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectFromResourceExA(
|
|
|
|
LPDIRECT3DDEVICE9 pDevice,
|
|
|
|
HMODULE hSrcModule,
|
|
|
|
LPCSTR pSrcResource,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
2017-12-11 23:55:31 -08:00
|
|
|
LPCSTR pSkipConstants,
|
2016-04-23 18:17:28 +02:00
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTPOOL pPool,
|
|
|
|
LPD3DXEFFECT* ppEffect,
|
|
|
|
LPD3DXBUFFER* ppCompilationErrors);
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectFromResourceExW(
|
|
|
|
LPDIRECT3DDEVICE9 pDevice,
|
|
|
|
HMODULE hSrcModule,
|
|
|
|
LPCWSTR pSrcResource,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
2017-12-11 23:55:31 -08:00
|
|
|
LPCSTR pSkipConstants,
|
2016-04-23 18:17:28 +02:00
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTPOOL pPool,
|
|
|
|
LPD3DXEFFECT* ppEffect,
|
|
|
|
LPD3DXBUFFER* ppCompilationErrors);
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
#define D3DXCreateEffectFromResourceEx D3DXCreateEffectFromResourceExW
|
|
|
|
#else
|
|
|
|
#define D3DXCreateEffectFromResourceEx D3DXCreateEffectFromResourceExA
|
|
|
|
#endif
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectEx(
|
|
|
|
LPDIRECT3DDEVICE9 pDevice,
|
|
|
|
LPCVOID pSrcData,
|
|
|
|
UINT SrcDataLen,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
2017-12-11 23:55:31 -08:00
|
|
|
LPCSTR pSkipConstants,
|
2016-04-23 18:17:28 +02:00
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTPOOL pPool,
|
|
|
|
LPD3DXEFFECT* ppEffect,
|
|
|
|
LPD3DXBUFFER* ppCompilationErrors);
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectCompilerFromFileA(
|
|
|
|
LPCSTR pSrcFile,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTCOMPILER* ppCompiler,
|
|
|
|
LPD3DXBUFFER* ppParseErrors);
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectCompilerFromFileW(
|
|
|
|
LPCWSTR pSrcFile,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTCOMPILER* ppCompiler,
|
|
|
|
LPD3DXBUFFER* ppParseErrors);
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
#define D3DXCreateEffectCompilerFromFile D3DXCreateEffectCompilerFromFileW
|
|
|
|
#else
|
|
|
|
#define D3DXCreateEffectCompilerFromFile D3DXCreateEffectCompilerFromFileA
|
|
|
|
#endif
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectCompilerFromResourceA(
|
|
|
|
HMODULE hSrcModule,
|
|
|
|
LPCSTR pSrcResource,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTCOMPILER* ppCompiler,
|
|
|
|
LPD3DXBUFFER* ppParseErrors);
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectCompilerFromResourceW(
|
|
|
|
HMODULE hSrcModule,
|
|
|
|
LPCWSTR pSrcResource,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTCOMPILER* ppCompiler,
|
|
|
|
LPD3DXBUFFER* ppParseErrors);
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
#define D3DXCreateEffectCompilerFromResource D3DXCreateEffectCompilerFromResourceW
|
|
|
|
#else
|
|
|
|
#define D3DXCreateEffectCompilerFromResource D3DXCreateEffectCompilerFromResourceA
|
|
|
|
#endif
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
D3DXCreateEffectCompiler(
|
|
|
|
LPCSTR pSrcData,
|
|
|
|
UINT SrcDataLen,
|
|
|
|
CONST D3DXMACRO* pDefines,
|
|
|
|
LPD3DXINCLUDE pInclude,
|
|
|
|
DWORD Flags,
|
|
|
|
LPD3DXEFFECTCOMPILER* ppCompiler,
|
|
|
|
LPD3DXBUFFER* ppParseErrors);
|
|
|
|
|
2017-12-11 23:55:31 -08:00
|
|
|
HRESULT WINAPI
|
2016-04-23 18:17:28 +02:00
|
|
|
D3DXDisassembleEffect(
|
2017-12-11 23:55:31 -08:00
|
|
|
LPD3DXEFFECT pEffect,
|
|
|
|
BOOL EnableColorCode,
|
2016-04-23 18:17:28 +02:00
|
|
|
LPD3DXBUFFER *ppDisassembly);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2018-02-03 13:11:31 +01:00
|
|
|
#endif /* __cplusplus */
|
2016-04-23 18:17:28 +02:00
|
|
|
|
2018-02-03 13:11:31 +01:00
|
|
|
#endif /* __D3DX9EFFECT_H__ */
|