ホーム › Graphics.Direct3D10 › ID3D10ShaderReflectionConstantBuffer
ID3D10ShaderReflectionConstantBuffer
COMメソッド 3
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 0 HRESULT GetDesc(D3D10_SHADER_BUFFER_DESC* pDesc)
| pDesc | D3D10_SHADER_BUFFER_DESC* | out | この定数バッファの記述情報を受け取る構造体ポインタ。 |
vtbl 1 ID3D10ShaderReflectionVariable* GetVariableByIndex(DWORD Index)
| Index | DWORD | in | 取得する変数を示すゼロ基点のインデックス。 |
vtbl 2 ID3D10ShaderReflectionVariable* GetVariableByName(LPSTR Name)
| Name | LPSTR | in | 取得する変数の名前を表すANSI文字列。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ID3D10ShaderReflectionConstantBuffer "{66C66A94-DDDD-4B62-A66A-F0DA33C2B4D0}" #usecom global ID3D10ShaderReflectionConstantBuffer IID_ID3D10ShaderReflectionConstantBuffer "{}" #comfunc global ID3D10ShaderReflectionConstantBuffer_GetDesc 0 var #comfunc global ID3D10ShaderReflectionConstantBuffer_GetVariableByIndex 1 int #comfunc global ID3D10ShaderReflectionConstantBuffer_GetVariableByName 2 str ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_ID3D10ShaderReflectionConstantBuffer "{66C66A94-DDDD-4B62-A66A-F0DA33C2B4D0}" #usecom global ID3D10ShaderReflectionConstantBuffer IID_ID3D10ShaderReflectionConstantBuffer "{}" #comfunc global ID3D10ShaderReflectionConstantBuffer_GetDesc 0 sptr #comfunc global ID3D10ShaderReflectionConstantBuffer_GetVariableByIndex 1 int #comfunc global ID3D10ShaderReflectionConstantBuffer_GetVariableByName 2 str ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。