Skip to content

Easy IDirect3DDevice Fix #175

@Algomancer

Description

@Algomancer

Woops, didn't notice there was a 2.0 branch here, posted this on a fork.

Great project.
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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions