IDCompositionDevice2 interface

Serves as a factory for all other Microsoft DirectComposition objects and provides methods to control transactional composition.


The IDCompositionDevice2 interface has these methods.

Method Description
IDCompositionDevice2::Commit Commits all DirectComposition commands that are pending on this device.
IDCompositionDevice2::CreateAnimation Creates an animation object that is used to animate one or more scalar properties of one or more Microsoft DirectComposition objects.
IDCompositionDevice2::CreateEffectGroup Creates an object that represents multiple effects to be applied to a visual subtree.
IDCompositionDevice2::CreateMatrixTransform Creates a 2D 3-by-2 matrix transform object.
IDCompositionDevice2::CreateMatrixTransform3D Creates a 3D 4-by-4 matrix transform object.
IDCompositionDevice2::CreateRectangleClip Creates a clip object that can be used to restrict the rendering of a visual subtree to a rectangular area.
IDCompositionDevice2::CreateRotateTransform Creates a 2D rotation transform object.
IDCompositionDevice2::CreateRotateTransform3D Creates a 3D rotation transform object.
IDCompositionDevice2::CreateScaleTransform Creates a 2D scale transform object.
IDCompositionDevice2::CreateScaleTransform3D Creates a 3D scale transform object.
IDCompositionDevice2::CreateSkewTransform Creates a 2D skew transform object.
IDCompositionDevice2::CreateSurface Creates an updateable surface object that can be associated with one or more visuals for composition.
IDCompositionDevice2::CreateSurfaceFactory Creates a Microsoft DirectComposition surface factory object, which can be used to create other DirectComposition surface or virtual surface objects.
IDCompositionDevice2::CreateTransform3DGroup Creates a 3D transform group object that holds an array of 3D transform objects.
IDCompositionDevice2::CreateTransformGroup Creates a 2D transform group object that holds an array of 2D transform objects.
IDCompositionDevice2::CreateTranslateTransform Creates a 2D translation transform object.
IDCompositionDevice2::CreateTranslateTransform3D Creates a 3D translation transform object.
IDCompositionDevice2::CreateVirtualSurface Creates a sparsely populated surface that can be associated with one or more visuals for composition.
IDCompositionDevice2::CreateVisual Creates a new visual object.
IDCompositionDevice2::GetFrameStatistics Retrieves information from the composition engine about composition times and the frame rate.
IDCompositionDevice2::WaitForCommitCompletion Waits for the composition engine to finish processing the previous call to the IDCompositionDevice2::Commit method.


Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header dcomp.h

See Also