ホーム › Graphics.Direct3D12 › ID3D12ShaderReflectionConstantBuffer
ID3D12ShaderReflectionConstantBuffer
COMメソッド 3
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 0 HRESULT GetDesc(D3D12_SHADER_BUFFER_DESC* pDesc)
| pDesc | D3D12_SHADER_BUFFER_DESC* | inout | 定数バッファーの記述情報を受け取るD3D12_SHADER_BUFFER_DESC構造体へのポインター。 |
vtbl 1 ID3D12ShaderReflectionVariable* GetVariableByIndex(DWORD Index)
| Index | DWORD | in | 取得する変数の0始まりインデックスを示すDWORD値。 |
vtbl 2 ID3D12ShaderReflectionVariable* GetVariableByName(LPSTR Name)
| Name | LPSTR | in | 取得する変数の名前を示すLPSTR(ANSI文字列)。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ID3D12ShaderReflectionConstantBuffer "{C59598B4-48B3-4869-B9B1-B1618B14A8B7}" #usecom global ID3D12ShaderReflectionConstantBuffer IID_ID3D12ShaderReflectionConstantBuffer "{}" #comfunc global ID3D12ShaderReflectionConstantBuffer_GetDesc 0 var #comfunc global ID3D12ShaderReflectionConstantBuffer_GetVariableByIndex 1 int #comfunc global ID3D12ShaderReflectionConstantBuffer_GetVariableByName 2 str ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_ID3D12ShaderReflectionConstantBuffer "{C59598B4-48B3-4869-B9B1-B1618B14A8B7}" #usecom global ID3D12ShaderReflectionConstantBuffer IID_ID3D12ShaderReflectionConstantBuffer "{}" #comfunc global ID3D12ShaderReflectionConstantBuffer_GetDesc 0 sptr #comfunc global ID3D12ShaderReflectionConstantBuffer_GetVariableByIndex 1 int #comfunc global ID3D12ShaderReflectionConstantBuffer_GetVariableByName 2 str ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。