Skip to content

Add WinRT CoreWindow handle#68

Merged
Lokathor merged 2 commits intorust-windowing:masterfrom
nathanvoglsam:core-window
Feb 24, 2021
Merged

Add WinRT CoreWindow handle#68
Lokathor merged 2 commits intorust-windowing:masterfrom
nathanvoglsam:core-window

Conversation

@nathanvoglsam
Copy link
Copy Markdown
Contributor

Currently this crate lacks an entry for Windows WinRT, which uses CoreWindow instead of HWND and other Win32 stuff for handling the windowing.

This pull request implements the WinRT variant on RawWindowHandle, holding WinRTHandle struct. The WinRTHandle struct currently has a single member, core_window, which is intended to contain a pointer to a CoreWindow instance. This implementation is chosen to match SDL2 which also exposes only the CoreWindow, and because it is the minimum currently needed for creating a swapchain on DX12 under WinRT see here.

I just copy pasted the existing Windows variant, renamed it and replaced the struct members.

@msiglreith msiglreith mentioned this pull request Feb 23, 2021
@Lokathor Lokathor merged commit 1e3255a into rust-windowing:master Feb 24, 2021
Friz64 pushed a commit to Friz64/raw-window-handle that referenced this pull request Jun 2, 2021
* Add WinRT core window handle

* cargo fmt
@Friz64 Friz64 mentioned this pull request Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants