ホーム › Graphics.Direct3D11 › ID3D11ShaderReflectionType
ID3D11ShaderReflectionType
COMメソッド 11
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 0 HRESULT GetDesc(D3D11_SHADER_TYPE_DESC* pDesc)
| pDesc | D3D11_SHADER_TYPE_DESC* | out | この型の記述(クラス・行列サイズ等)を受け取るD3D11_SHADER_TYPE_DESC出力ポインタ。 |
vtbl 1 ID3D11ShaderReflectionType* GetMemberTypeByIndex(DWORD Index)
| Index | DWORD | in | 0始まりのメンバインデックスを指定し、対応するメンバ型を取得する。 |
vtbl 2 ID3D11ShaderReflectionType* GetMemberTypeByName(LPSTR Name)
| Name | LPSTR | in | 取得対象のメンバ名(ANSI文字列)を指定する。 |
| Index | DWORD | in | 0始まりのメンバインデックスを指定し、そのメンバ名を取得する。 |
vtbl 4 HRESULT IsEqual(ID3D11ShaderReflectionType* pType)
| pType | ID3D11ShaderReflectionType* | in | 等価比較する相手の型インターフェイスを指す。 |
vtbl 5 ID3D11ShaderReflectionType* GetSubType()
vtbl 6 ID3D11ShaderReflectionType* GetBaseClass()
vtbl 7 DWORD GetNumInterfaces()
vtbl 8 ID3D11ShaderReflectionType* GetInterfaceByIndex(DWORD uIndex)
| uIndex | DWORD | in | 0始まりのインデックスを指定し、この型が持つインターフェイス型を取得する。 |
vtbl 9 HRESULT IsOfType(ID3D11ShaderReflectionType* pType)
| pType | ID3D11ShaderReflectionType* | in | 型一致を判定する相手の型インターフェイスを指す。 |
vtbl 10 HRESULT ImplementsInterface(ID3D11ShaderReflectionType* pBase)
| pBase | ID3D11ShaderReflectionType* | in | 実装しているか判定する基底インターフェイス型を指す。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ID3D11ShaderReflectionType "{6E6FFA6A-9BAE-4613-A51E-91652D508C21}" #usecom global ID3D11ShaderReflectionType IID_ID3D11ShaderReflectionType "{}" #comfunc global ID3D11ShaderReflectionType_GetDesc 0 var #comfunc global ID3D11ShaderReflectionType_GetMemberTypeByIndex 1 int #comfunc global ID3D11ShaderReflectionType_GetMemberTypeByName 2 str #comfunc global ID3D11ShaderReflectionType_GetMemberTypeName 3 int #comfunc global ID3D11ShaderReflectionType_IsEqual 4 sptr #comfunc global ID3D11ShaderReflectionType_GetSubType 5 #comfunc global ID3D11ShaderReflectionType_GetBaseClass 6 #comfunc global ID3D11ShaderReflectionType_GetNumInterfaces 7 #comfunc global ID3D11ShaderReflectionType_GetInterfaceByIndex 8 int #comfunc global ID3D11ShaderReflectionType_IsOfType 9 sptr #comfunc global ID3D11ShaderReflectionType_ImplementsInterface 10 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ID3D11ShaderReflectionType "{6E6FFA6A-9BAE-4613-A51E-91652D508C21}" #usecom global ID3D11ShaderReflectionType IID_ID3D11ShaderReflectionType "{}" #comfunc global ID3D11ShaderReflectionType_GetDesc 0 sptr #comfunc global ID3D11ShaderReflectionType_GetMemberTypeByIndex 1 int #comfunc global ID3D11ShaderReflectionType_GetMemberTypeByName 2 str #comfunc global ID3D11ShaderReflectionType_GetMemberTypeName 3 int #comfunc global ID3D11ShaderReflectionType_IsEqual 4 sptr #comfunc global ID3D11ShaderReflectionType_GetSubType 5 #comfunc global ID3D11ShaderReflectionType_GetBaseClass 6 #comfunc global ID3D11ShaderReflectionType_GetNumInterfaces 7 #comfunc global ID3D11ShaderReflectionType_GetInterfaceByIndex 8 int #comfunc global ID3D11ShaderReflectionType_IsOfType 9 sptr #comfunc global ID3D11ShaderReflectionType_ImplementsInterface 10 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。