ホーム › Graphics.Direct3D10 › ID3D10EffectVariable
ID3D10EffectVariable
COMメソッド 25
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 0 BOOL IsValid()
vtbl 1 ID3D10EffectType* GetType()
vtbl 2 HRESULT GetDesc(D3D10_EFFECT_VARIABLE_DESC* pDesc)
| pDesc | D3D10_EFFECT_VARIABLE_DESC* | out | エフェクト変数の記述を受け取る D3D10_EFFECT_VARIABLE_DESC 構造体へのポインタ。変数名やセマンティクス等が格納される。 |
vtbl 3 ID3D10EffectVariable* GetAnnotationByIndex(DWORD Index)
| Index | DWORD | in | 取得する注釈を示すゼロ基点のインデックス。 |
vtbl 4 ID3D10EffectVariable* GetAnnotationByName(LPSTR Name)
| Name | LPSTR | in | 取得する注釈の名前を指す NULL 終端 ANSI 文字列。 |
vtbl 5 ID3D10EffectVariable* GetMemberByIndex(DWORD Index)
| Index | DWORD | in | 取得する構造体メンバー変数を示すゼロ基点のインデックス。 |
vtbl 6 ID3D10EffectVariable* GetMemberByName(LPSTR Name)
| Name | LPSTR | in | 取得する構造体メンバー変数の名前を指す NULL 終端 ANSI 文字列。 |
vtbl 7 ID3D10EffectVariable* GetMemberBySemantic(LPSTR Semantic)
| Semantic | LPSTR | in | 取得する構造体メンバー変数のセマンティクスを指す NULL 終端 ANSI 文字列。 |
vtbl 8 ID3D10EffectVariable* GetElement(DWORD Index)
| Index | DWORD | in | 配列変数から取得する要素を示すゼロ基点のインデックス。 |
vtbl 9 ID3D10EffectConstantBuffer* GetParentConstantBuffer()
vtbl 10 ID3D10EffectScalarVariable* AsScalar()
vtbl 11 ID3D10EffectVectorVariable* AsVector()
vtbl 12 ID3D10EffectMatrixVariable* AsMatrix()
vtbl 13 ID3D10EffectStringVariable* AsString()
vtbl 14 ID3D10EffectShaderResourceVariable* AsShaderResource()
vtbl 15 ID3D10EffectRenderTargetViewVariable* AsRenderTargetView()
vtbl 16 ID3D10EffectDepthStencilViewVariable* AsDepthStencilView()
vtbl 17 ID3D10EffectConstantBuffer* AsConstantBuffer()
vtbl 18 ID3D10EffectShaderVariable* AsShader()
vtbl 19 ID3D10EffectBlendVariable* AsBlend()
vtbl 20 ID3D10EffectDepthStencilVariable* AsDepthStencil()
vtbl 21 ID3D10EffectRasterizerVariable* AsRasterizer()
vtbl 22 ID3D10EffectSamplerVariable* AsSampler()
| pData | void* | in | 変数に書き込む生バイトデータの先頭を指すポインタ。 |
| Offset | DWORD | in | 書き込み開始位置を示す変数先頭からのバイトオフセット。 |
| ByteCount | DWORD | in | 書き込むデータのバイト数。 |
| pData | void* | out | 変数の生バイトデータを受け取るバッファへのポインタ。 |
| Offset | DWORD | in | 読み取り開始位置を示す変数先頭からのバイトオフセット。 |
| ByteCount | DWORD | in | 読み取るデータのバイト数。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ID3D10EffectVariable "{AE897105-00E6-45BF-BB8E-281DD6DB8E1B}" #usecom global ID3D10EffectVariable IID_ID3D10EffectVariable "{}" #comfunc global ID3D10EffectVariable_IsValid 0 #comfunc global ID3D10EffectVariable_GetType 1 #comfunc global ID3D10EffectVariable_GetDesc 2 var #comfunc global ID3D10EffectVariable_GetAnnotationByIndex 3 int #comfunc global ID3D10EffectVariable_GetAnnotationByName 4 str #comfunc global ID3D10EffectVariable_GetMemberByIndex 5 int #comfunc global ID3D10EffectVariable_GetMemberByName 6 str #comfunc global ID3D10EffectVariable_GetMemberBySemantic 7 str #comfunc global ID3D10EffectVariable_GetElement 8 int #comfunc global ID3D10EffectVariable_GetParentConstantBuffer 9 #comfunc global ID3D10EffectVariable_AsScalar 10 #comfunc global ID3D10EffectVariable_AsVector 11 #comfunc global ID3D10EffectVariable_AsMatrix 12 #comfunc global ID3D10EffectVariable_AsString 13 #comfunc global ID3D10EffectVariable_AsShaderResource 14 #comfunc global ID3D10EffectVariable_AsRenderTargetView 15 #comfunc global ID3D10EffectVariable_AsDepthStencilView 16 #comfunc global ID3D10EffectVariable_AsConstantBuffer 17 #comfunc global ID3D10EffectVariable_AsShader 18 #comfunc global ID3D10EffectVariable_AsBlend 19 #comfunc global ID3D10EffectVariable_AsDepthStencil 20 #comfunc global ID3D10EffectVariable_AsRasterizer 21 #comfunc global ID3D10EffectVariable_AsSampler 22 #comfunc global ID3D10EffectVariable_SetRawValue 23 sptr,int,int #comfunc global ID3D10EffectVariable_GetRawValue 24 sptr,int,int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ID3D10EffectVariable "{AE897105-00E6-45BF-BB8E-281DD6DB8E1B}" #usecom global ID3D10EffectVariable IID_ID3D10EffectVariable "{}" #comfunc global ID3D10EffectVariable_IsValid 0 #comfunc global ID3D10EffectVariable_GetType 1 #comfunc global ID3D10EffectVariable_GetDesc 2 sptr #comfunc global ID3D10EffectVariable_GetAnnotationByIndex 3 int #comfunc global ID3D10EffectVariable_GetAnnotationByName 4 str #comfunc global ID3D10EffectVariable_GetMemberByIndex 5 int #comfunc global ID3D10EffectVariable_GetMemberByName 6 str #comfunc global ID3D10EffectVariable_GetMemberBySemantic 7 str #comfunc global ID3D10EffectVariable_GetElement 8 int #comfunc global ID3D10EffectVariable_GetParentConstantBuffer 9 #comfunc global ID3D10EffectVariable_AsScalar 10 #comfunc global ID3D10EffectVariable_AsVector 11 #comfunc global ID3D10EffectVariable_AsMatrix 12 #comfunc global ID3D10EffectVariable_AsString 13 #comfunc global ID3D10EffectVariable_AsShaderResource 14 #comfunc global ID3D10EffectVariable_AsRenderTargetView 15 #comfunc global ID3D10EffectVariable_AsDepthStencilView 16 #comfunc global ID3D10EffectVariable_AsConstantBuffer 17 #comfunc global ID3D10EffectVariable_AsShader 18 #comfunc global ID3D10EffectVariable_AsBlend 19 #comfunc global ID3D10EffectVariable_AsDepthStencil 20 #comfunc global ID3D10EffectVariable_AsRasterizer 21 #comfunc global ID3D10EffectVariable_AsSampler 22 #comfunc global ID3D10EffectVariable_SetRawValue 23 sptr,int,int #comfunc global ID3D10EffectVariable_GetRawValue 24 sptr,int,int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。