CompositionGraphicsDevice
CompositionGraphicsDevice
CompositionGraphicsDevice
CompositionGraphicsDevice
Class
Definition
Used to create all hardware bound resources for a given DirectX device on a compositor session. CompositionGraphicsDevice contains a DirectX device that is used to perform the GPU operations. Developers can obtain a Graphics device from the compositor top level object.
public : sealed class CompositionGraphicsDevice : CompositionObject, ICompositionGraphicsDevice, ICompositionGraphicsDevice2public sealed class CompositionGraphicsDevice : CompositionObject, ICompositionGraphicsDevice, ICompositionGraphicsDevice2Public NotInheritable Class CompositionGraphicsDevice Inherits CompositionObject Implements ICompositionGraphicsDevice, ICompositionGraphicsDevice2// This API is not available in Javascript.
- Inheritance
-
CompositionGraphicsDeviceCompositionGraphicsDeviceCompositionGraphicsDeviceCompositionGraphicsDevice
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
Inherited properties
Methods
CreateDrawingSurface(Size, DirectXPixelFormat, DirectXAlphaMode) CreateDrawingSurface(Size, DirectXPixelFormat, DirectXAlphaMode) CreateDrawingSurface(Size, DirectXPixelFormat, DirectXAlphaMode) CreateDrawingSurface(Size, DirectXPixelFormat, DirectXAlphaMode)
Creates an instance of CompositionDrawingSurface.
public : CompositionDrawingSurface CreateDrawingSurface(Size sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode)public CompositionDrawingSurface CreateDrawingSurface(Size sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode)Public Function CreateDrawingSurface(sizePixels As Size, pixelFormat As DirectXPixelFormat, alphaMode As DirectXAlphaMode) As CompositionDrawingSurface// This API is not available in Javascript.
The pixel format of the surface.
How the alpha channel should be handled.
The created CompositionDrawingSurface.
| Device family |
Windows 10 (introduced v10.0.10586.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v2)
|
CreateDrawingSurface2(SizeInt32, DirectXPixelFormat, DirectXAlphaMode) CreateDrawingSurface2(SizeInt32, DirectXPixelFormat, DirectXAlphaMode) CreateDrawingSurface2(SizeInt32, DirectXPixelFormat, DirectXAlphaMode) CreateDrawingSurface2(SizeInt32, DirectXPixelFormat, DirectXAlphaMode)
Creates an instance of CompositionDrawingSurface.
public : CompositionDrawingSurface CreateDrawingSurface2(SizeInt32 sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode)public CompositionDrawingSurface CreateDrawingSurface2(SizeInt32 sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode)Public Function CreateDrawingSurface2(sizePixels As SizeInt32, pixelFormat As DirectXPixelFormat, alphaMode As DirectXAlphaMode) As CompositionDrawingSurface// This API is not available in Javascript.
The pixel format of the drawing surface.
The alpha mode of the drawing surface.
Returns the created CompositionDrawingSurface.
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
CreateVirtualDrawingSurface(SizeInt32, DirectXPixelFormat, DirectXAlphaMode) CreateVirtualDrawingSurface(SizeInt32, DirectXPixelFormat, DirectXAlphaMode) CreateVirtualDrawingSurface(SizeInt32, DirectXPixelFormat, DirectXAlphaMode) CreateVirtualDrawingSurface(SizeInt32, DirectXPixelFormat, DirectXAlphaMode)
Creates an instance of CompositionVirtualDrawingSurface.
public : CompositionVirtualDrawingSurface CreateVirtualDrawingSurface(SizeInt32 sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode)public CompositionVirtualDrawingSurface CreateVirtualDrawingSurface(SizeInt32 sizePixels, DirectXPixelFormat pixelFormat, DirectXAlphaMode alphaMode)Public Function CreateVirtualDrawingSurface(sizePixels As SizeInt32, pixelFormat As DirectXPixelFormat, alphaMode As DirectXAlphaMode) As CompositionVirtualDrawingSurface// This API is not available in Javascript.
The pixel format of the drawing surface.
The alpha mode of the drawing surface.
Returns the created CompositionVirtualDrawingSurface.
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
Events
RenderingDeviceReplaced RenderingDeviceReplaced RenderingDeviceReplaced RenderingDeviceReplaced
Event triggered when the rendering device has been replaced.
public : event TypedEventHandler RenderingDeviceReplaced<CompositionGraphicsDevice, RenderingDeviceReplacedEventArgs>public event TypedEventHandler RenderingDeviceReplaced<CompositionGraphicsDevice, RenderingDeviceReplacedEventArgs>Public Event RenderingDeviceReplaced<CompositionGraphicsDevice, RenderingDeviceReplacedEventArgs>// This API is not available in Javascript.
| Device family |
Windows 10 (introduced v10.0.10586.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v2)
|