IBasicVideoEffect.SupportedMemoryTypes IBasicVideoEffect.SupportedMemoryTypes IBasicVideoEffect.SupportedMemoryTypes IBasicVideoEffect.SupportedMemoryTypes IBasicVideoEffect.SupportedMemoryTypes Property

Definition

Gets a value that indicates whether the custom video effect supports the use of GPU memory or CPU memory.

public : MediaMemoryTypes SupportedMemoryTypes { get; }
MediaMemoryTypes SupportedMemoryTypes();
public MediaMemoryTypes SupportedMemoryTypes { get; }
Public ReadOnly Property SupportedMemoryTypes As MediaMemoryTypes
var mediaMemoryTypes = iBasicVideoEffect.supportedMemoryTypes;

Property Value

A value that indicates the custom video effect's supported memory types.

Remarks

If you specify MediaMemoryTypes.GpuAndCpu when setting the memory type for your effect, the system will use either GPU or system memory, whichever is more efficient for the pipeline. When using this value, you must check in the ProcessFrame method to see whether the SoftwareBitmap or IDirect3DSurface passed into the method contains data and then process the frame accordingly.