MediaMemoryTypes Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the types of memory that can be used for a media operation.
public enum class MediaMemoryTypes
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class MediaMemoryTypes
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MediaMemoryTypes
var value = Windows.Media.Effects.MediaMemoryTypes.gpu
Public Enum MediaMemoryTypes
- Inheritance
-
MediaMemoryTypes
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
Name | Value | Description |
---|---|---|
Gpu | 0 | GPU memory. |
Cpu | 1 | CPU memory. |
GpuAndCpu | 2 | Both GPU and CPU memory. |
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.