MediaMemoryTypes
MediaMemoryTypes
MediaMemoryTypes
MediaMemoryTypes
Enum
Definition
Specifies the types of memory that can be used for a media operation.
public : enum class MediaMemoryTypespublic enum MediaMemoryTypesPublic Enum MediaMemoryTypes// You can use this enum in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Fields
| Cpu Cpu Cpu Cpu | CPU memory. |
| Gpu Gpu Gpu Gpu | GPU memory. |
| GpuAndCpu GpuAndCpu GpuAndCpu GpuAndCpu | 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.