Desktop: Window resize handling on Windows (#3167)

* Native window resize on windows

* Fix linux build

* Fix windows build

* try clean up

* clean up

* Add module comment

* FIx

* Review improvements

* Improve
This commit is contained in:
Timon
2025-09-15 12:15:31 +00:00
committed by GitHub
parent da330b6dd0
commit ab55b3225d
6 changed files with 381 additions and 16 deletions
-1
View File
@@ -265,7 +265,6 @@ impl D3D11Importer {
fn import_d3d11_handle_to_d3d12(&self, hal_device: &<wgpu::hal::api::Dx12 as wgpu::hal::Api>::Device) -> Result<windows::Win32::Graphics::Direct3D12::ID3D12Resource, TextureImportError> {
use windows::Win32::Graphics::Direct3D12::*;
use windows::core::*;
// Get D3D12 device from wgpu-hal
let d3d12_device = hal_device.raw_device();