This repository was archived by the owner on Apr 26, 2023. It is now read-only.

Description
Hey - great fork, just was floating around and noticed you are using the media capture work around for initialising a IDirect3DDevice.
Here is something if you want something that works even without a Capture Device connected and enabled. Save you some pain.
from winsdk.windows.ai.machinelearning import LearningModelDevice, LearningModelDeviceKind
device = LearningModelDevice(LearningModelDeviceKind.DIRECT_X_HIGH_PERFORMANCE)
Doesn't require the media device.
Should be an easy change, enjoy.