ホーム › Graphics.Direct3D10 › ID3D10EffectSamplerVariable
ID3D10EffectSamplerVariable
COMメソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 25 HRESULT GetSampler(DWORD Index, ID3D10SamplerState** ppSampler)
| Index | DWORD | in | 配列内のサンプラーステートを示すゼロ基点のインデックス。 |
| ppSampler | ID3D10SamplerState** | out | サンプラーステートを受け取る ID3D10SamplerState ポインタのアドレス。参照カウントが増える。 |
vtbl 26 HRESULT GetBackingStore(DWORD Index, D3D10_SAMPLER_DESC* pSamplerDesc)
| Index | DWORD | in | 配列内のサンプラーステートを示すゼロ基点のインデックス。 |
| pSamplerDesc | D3D10_SAMPLER_DESC* | out | サンプラーステートの記述を受け取る D3D10_SAMPLER_DESC 構造体へのポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ID3D10EffectSamplerVariable "{6530D5C7-07E9-4271-A418-E7CE4BD1E480}" #usecom global ID3D10EffectSamplerVariable IID_ID3D10EffectSamplerVariable "{}" #comfunc global ID3D10EffectSamplerVariable_GetSampler 25 int,sptr #comfunc global ID3D10EffectSamplerVariable_GetBackingStore 26 int,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ID3D10EffectSamplerVariable "{6530D5C7-07E9-4271-A418-E7CE4BD1E480}" #usecom global ID3D10EffectSamplerVariable IID_ID3D10EffectSamplerVariable "{}" #comfunc global ID3D10EffectSamplerVariable_GetSampler 25 int,sptr #comfunc global ID3D10EffectSamplerVariable_GetBackingStore 26 int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。