Skip to content

Expose an option to list all devices and create camera from selected one#13

Open
mrozycki wants to merge 1 commit intopayload:mainfrom
mrozycki:list-devices
Open

Expose an option to list all devices and create camera from selected one#13
mrozycki wants to merge 1 commit intopayload:mainfrom
mrozycki:list-devices

Conversation

@mrozycki
Copy link

@mrozycki mrozycki commented Oct 21, 2024

Created a Device struct in all 3 backends, allowing the user of the library to get a list of all available devices, and create a Camera out of a selected one. Tested it on macOS, Windows and Linux.

I've had some issues with winit on Linux, even without my changes, so I did a minimal amount of work to update winit to 0.30.5 locally to test my changes. I did not include that in this PR, but I might do it separately. Generally, since winit is only used in the example code, this is not high priority in my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments