Win32 API 日本語リファレンス
ホームGraphics.DirectComposition › IDCompositionDevice2

IDCompositionDevice2

COM
IID75f6468d-1b8e-447c-9bc6-75fea80b5b25継承元IUnknown自前メソッド開始 vtbl3

メソッド 21

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT Commit()
vtbl 4 HRESULT WaitForCommitCompletion()
vtbl 5 HRESULT GetFrameStatistics(DCOMPOSITION_FRAME_STATISTICS* statistics)
statisticsDCOMPOSITION_FRAME_STATISTICS*out直近の合成フレームのタイミング情報を受け取る構造体へのポインタである。
vtbl 6 HRESULT CreateVisual(IDCompositionVisual2** visual)
visualIDCompositionVisual2**out新規作成されたビジュアルオブジェクトを受け取る出力ポインタである。
vtbl 7 HRESULT CreateSurfaceFactory(IUnknown* renderingDevice, IDCompositionSurfaceFactory** surfaceFactory)
renderingDeviceIUnknown*inサーフェス生成に用いるD3DまたはD2Dレンダリングデバイスである。
surfaceFactoryIDCompositionSurfaceFactory**out作成されたサーフェスファクトリを受け取る出力ポインタである。
vtbl 8 HRESULT CreateSurface(DWORD width, DWORD height, DXGI_FORMAT pixelFormat, DXGI_ALPHA_MODE alphaMode, IDCompositionSurface** surface)
widthDWORDin作成するサーフェスの幅(ピクセル)。0より大きい値を指定する。
heightDWORDin作成するサーフェスの高さ(ピクセル)。0より大きい値を指定する。
pixelFormatDXGI_FORMATinサーフェスのピクセル形式を指定するDXGI_FORMAT列挙値である。
alphaModeDXGI_ALPHA_MODEinアルファの扱いを示すDXGI_ALPHA_MODE(事前乗算/直線等)を指定する。
surfaceIDCompositionSurface**out作成されたサーフェスを受け取る出力ポインタである。
vtbl 9 HRESULT CreateVirtualSurface(DWORD initialWidth, DWORD initialHeight, DXGI_FORMAT pixelFormat, DXGI_ALPHA_MODE alphaMode, IDCompositionVirtualSurface** virtualSurface)
initialWidthDWORDin仮想サーフェスの初期幅(ピクセル)。後でResizeで変更可能である。
initialHeightDWORDin仮想サーフェスの初期高さ(ピクセル)。後でResizeで変更可能である。
pixelFormatDXGI_FORMATinサーフェスのピクセル形式を指定するDXGI_FORMAT列挙値である。
alphaModeDXGI_ALPHA_MODEinアルファの扱いを示すDXGI_ALPHA_MODE列挙値を指定する。
virtualSurfaceIDCompositionVirtualSurface**out作成された仮想サーフェスを受け取る出力ポインタである。
vtbl 10 HRESULT CreateTranslateTransform(IDCompositionTranslateTransform** translateTransform)
translateTransformIDCompositionTranslateTransform**out作成された2D平行移動変換オブジェクトを受け取る出力ポインタである。
vtbl 11 HRESULT CreateScaleTransform(IDCompositionScaleTransform** scaleTransform)
scaleTransformIDCompositionScaleTransform**out作成された2D拡大縮小変換オブジェクトを受け取る出力ポインタである。
vtbl 12 HRESULT CreateRotateTransform(IDCompositionRotateTransform** rotateTransform)
rotateTransformIDCompositionRotateTransform**out作成された2D回転変換オブジェクトを受け取る出力ポインタである。
vtbl 13 HRESULT CreateSkewTransform(IDCompositionSkewTransform** skewTransform)
skewTransformIDCompositionSkewTransform**out作成された2Dせん断(スキュー)変換オブジェクトを受け取る出力ポインタである。
vtbl 14 HRESULT CreateMatrixTransform(IDCompositionMatrixTransform** matrixTransform)
matrixTransformIDCompositionMatrixTransform**out作成された2D行列変換オブジェクトを受け取る出力ポインタである。
vtbl 15 HRESULT CreateTransformGroup(IDCompositionTransform** transforms, DWORD elements, IDCompositionTransform** transformGroup)
transformsIDCompositionTransform**inグループ化する2D変換オブジェクトの配列へのポインタである。
elementsDWORDintransforms配列に含まれる変換の個数を指定する。
transformGroupIDCompositionTransform**out合成された変換グループを受け取る出力ポインタである。
vtbl 16 HRESULT CreateTranslateTransform3D(IDCompositionTranslateTransform3D** translateTransform3D)
translateTransform3DIDCompositionTranslateTransform3D**out作成された3D平行移動変換オブジェクトを受け取る出力ポインタである。
vtbl 17 HRESULT CreateScaleTransform3D(IDCompositionScaleTransform3D** scaleTransform3D)
scaleTransform3DIDCompositionScaleTransform3D**out作成された3D拡大縮小変換オブジェクトを受け取る出力ポインタである。
vtbl 18 HRESULT CreateRotateTransform3D(IDCompositionRotateTransform3D** rotateTransform3D)
rotateTransform3DIDCompositionRotateTransform3D**out作成された3D回転変換オブジェクトを受け取る出力ポインタである。
vtbl 19 HRESULT CreateMatrixTransform3D(IDCompositionMatrixTransform3D** matrixTransform3D)
matrixTransform3DIDCompositionMatrixTransform3D**out作成された3D行列変換オブジェクトを受け取る出力ポインタである。
vtbl 20 HRESULT CreateTransform3DGroup(IDCompositionTransform3D** transforms3D, DWORD elements, IDCompositionTransform3D** transform3DGroup)
transforms3DIDCompositionTransform3D**inグループ化する3D変換オブジェクトの配列へのポインタである。
elementsDWORDintransforms3D配列に含まれる変換の個数を指定する。
transform3DGroupIDCompositionTransform3D**out合成された3D変換グループを受け取る出力ポインタである。
vtbl 21 HRESULT CreateEffectGroup(IDCompositionEffectGroup** effectGroup)
effectGroupIDCompositionEffectGroup**out作成されたエフェクトグループオブジェクトを受け取る出力ポインタである。
vtbl 22 HRESULT CreateRectangleClip(IDCompositionRectangleClip** clip)
clipIDCompositionRectangleClip**out作成された矩形クリップオブジェクトを受け取る出力ポインタである。
vtbl 23 HRESULT CreateAnimation(IDCompositionAnimation** animation)
animationIDCompositionAnimation**out作成されたアニメーションオブジェクトを受け取る出力ポインタである。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_IDCompositionDevice2 "{75F6468D-1B8E-447C-9BC6-75FEA80B5B25}"
#usecom global IDCompositionDevice2 IID_IDCompositionDevice2 "{}"
#comfunc global IDCompositionDevice2_Commit                      3
#comfunc global IDCompositionDevice2_WaitForCommitCompletion     4
#comfunc global IDCompositionDevice2_GetFrameStatistics          5 var
#comfunc global IDCompositionDevice2_CreateVisual                6 sptr
#comfunc global IDCompositionDevice2_CreateSurfaceFactory        7 sptr,sptr
#comfunc global IDCompositionDevice2_CreateSurface               8 int,int,int,int,sptr
#comfunc global IDCompositionDevice2_CreateVirtualSurface        9 int,int,int,int,sptr
#comfunc global IDCompositionDevice2_CreateTranslateTransform    10 sptr
#comfunc global IDCompositionDevice2_CreateScaleTransform        11 sptr
#comfunc global IDCompositionDevice2_CreateRotateTransform       12 sptr
#comfunc global IDCompositionDevice2_CreateSkewTransform         13 sptr
#comfunc global IDCompositionDevice2_CreateMatrixTransform       14 sptr
#comfunc global IDCompositionDevice2_CreateTransformGroup        15 sptr,int,sptr
#comfunc global IDCompositionDevice2_CreateTranslateTransform3D  16 sptr
#comfunc global IDCompositionDevice2_CreateScaleTransform3D      17 sptr
#comfunc global IDCompositionDevice2_CreateRotateTransform3D     18 sptr
#comfunc global IDCompositionDevice2_CreateMatrixTransform3D     19 sptr
#comfunc global IDCompositionDevice2_CreateTransform3DGroup      20 sptr,int,sptr
#comfunc global IDCompositionDevice2_CreateEffectGroup           21 sptr
#comfunc global IDCompositionDevice2_CreateRectangleClip         22 sptr
#comfunc global IDCompositionDevice2_CreateAnimation             23 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。