IBasicVideoEffect.SupportedMemoryTypes Property

Definition

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

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

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.

Applies to