ホーム › Graphics.Direct3D12 › ID3D12ShaderReflectionType
ID3D12ShaderReflectionType
COMメソッド 11
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 0 HRESULT GetDesc(D3D12_SHADER_TYPE_DESC* pDesc)
| pDesc | D3D12_SHADER_TYPE_DESC* | out | 型の記述情報を受け取るD3D12_SHADER_TYPE_DESC構造体へのポインター。 |
vtbl 1 ID3D12ShaderReflectionType* GetMemberTypeByIndex(DWORD Index)
| Index | DWORD | in | 取得するメンバー型の0始まりインデックスを示すDWORD値。 |
vtbl 2 ID3D12ShaderReflectionType* GetMemberTypeByName(LPSTR Name)
| Name | LPSTR | in | 取得するメンバー型の名前を示すLPSTR(ANSI文字列)。 |
| Index | DWORD | in | 名前を取得するメンバーの0始まりインデックスを示すDWORD値。 |
vtbl 4 HRESULT IsEqual(ID3D12ShaderReflectionType* pType)
| pType | ID3D12ShaderReflectionType* | in | 等価性を比較する対象のID3D12ShaderReflectionType。 |
vtbl 5 ID3D12ShaderReflectionType* GetSubType()
vtbl 6 ID3D12ShaderReflectionType* GetBaseClass()
vtbl 7 DWORD GetNumInterfaces()
vtbl 8 ID3D12ShaderReflectionType* GetInterfaceByIndex(DWORD uIndex)
| uIndex | DWORD | in | 取得するベースインターフェイスの0始まりインデックスを示すDWORD値。 |
vtbl 9 HRESULT IsOfType(ID3D12ShaderReflectionType* pType)
| pType | ID3D12ShaderReflectionType* | in | 型一致を判定する対象のID3D12ShaderReflectionType。 |
vtbl 10 HRESULT ImplementsInterface(ID3D12ShaderReflectionType* pBase)
| pBase | ID3D12ShaderReflectionType* | in | 実装関係を判定する基底インターフェイス型のID3D12ShaderReflectionType。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ID3D12ShaderReflectionType "{E913C351-783D-48CA-A1D1-4F306284AD56}" #usecom global ID3D12ShaderReflectionType IID_ID3D12ShaderReflectionType "{}" #comfunc global ID3D12ShaderReflectionType_GetDesc 0 var #comfunc global ID3D12ShaderReflectionType_GetMemberTypeByIndex 1 int #comfunc global ID3D12ShaderReflectionType_GetMemberTypeByName 2 str #comfunc global ID3D12ShaderReflectionType_GetMemberTypeName 3 int #comfunc global ID3D12ShaderReflectionType_IsEqual 4 sptr #comfunc global ID3D12ShaderReflectionType_GetSubType 5 #comfunc global ID3D12ShaderReflectionType_GetBaseClass 6 #comfunc global ID3D12ShaderReflectionType_GetNumInterfaces 7 #comfunc global ID3D12ShaderReflectionType_GetInterfaceByIndex 8 int #comfunc global ID3D12ShaderReflectionType_IsOfType 9 sptr #comfunc global ID3D12ShaderReflectionType_ImplementsInterface 10 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_ID3D12ShaderReflectionType "{E913C351-783D-48CA-A1D1-4F306284AD56}" #usecom global ID3D12ShaderReflectionType IID_ID3D12ShaderReflectionType "{}" #comfunc global ID3D12ShaderReflectionType_GetDesc 0 sptr #comfunc global ID3D12ShaderReflectionType_GetMemberTypeByIndex 1 int #comfunc global ID3D12ShaderReflectionType_GetMemberTypeByName 2 str #comfunc global ID3D12ShaderReflectionType_GetMemberTypeName 3 int #comfunc global ID3D12ShaderReflectionType_IsEqual 4 sptr #comfunc global ID3D12ShaderReflectionType_GetSubType 5 #comfunc global ID3D12ShaderReflectionType_GetBaseClass 6 #comfunc global ID3D12ShaderReflectionType_GetNumInterfaces 7 #comfunc global ID3D12ShaderReflectionType_GetInterfaceByIndex 8 int #comfunc global ID3D12ShaderReflectionType_IsOfType 9 sptr #comfunc global ID3D12ShaderReflectionType_ImplementsInterface 10 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。