Direct3D11CaptureFramePool Direct3D11CaptureFramePool Direct3D11CaptureFramePool Direct3D11CaptureFramePool Class

Definition

Stores frames captured by the application.

public : sealed class Direct3D11CaptureFramePool : IClosable
struct winrt::Windows::Graphics::Capture::Direct3D11CaptureFramePool : IClosable
public sealed class Direct3D11CaptureFramePool : IDisposable
Public NotInheritable Class Direct3D11CaptureFramePool Implements IDisposable
Attributes

Windows 10 requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

Remarks

Version history

Windows version SDK version Value added
1809 17763 CreateFreeThreaded

Properties

DispatcherQueue DispatcherQueue DispatcherQueue DispatcherQueue

The DispatcherQueue for the frame pool.

Methods

Close() Close() Close() Close()

Disposes of the capture frame pool and releases its resources.

Create(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32) Create(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32) Create(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32) Create(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32)

Creates a frame pool.

CreateCaptureSession(GraphicsCaptureItem) CreateCaptureSession(GraphicsCaptureItem) CreateCaptureSession(GraphicsCaptureItem) CreateCaptureSession(GraphicsCaptureItem)

Creates a capture session based on the given capture item and frame pool.

CreateFreeThreaded(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32) CreateFreeThreaded(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32) CreateFreeThreaded(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32) CreateFreeThreaded(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32)

Creates a frame pool where the dependency on the DispatcherQueue is removed and the FrameArrived event is raised on the frame pool's internal worker thread.

Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Recreate(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32) Recreate(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32) Recreate(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32) Recreate(IDirect3DDevice, DirectXPixelFormat, Int32, SizeInt32)

Recreates the frame pool based on the given inputs.

TryGetNextFrame() TryGetNextFrame() TryGetNextFrame() TryGetNextFrame()

Tries to get the next captured frame from the frame pool.

Events

FrameArrived FrameArrived FrameArrived FrameArrived

An event raised when a captured frame is stored in the frame pool.

See also