mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
Merge #91
91: Better resize support on D3D and Vulkan r=swiftcoder a=kvark Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
This commit is contained in:
commit
1faba3c265
@ -1515,14 +1515,17 @@ pub fn device_create_swap_chain(
|
||||
config.format, formats);
|
||||
}
|
||||
//TODO: properly exclusive range
|
||||
/* TODO: this is way too restrictive
|
||||
assert!(desc.width >= caps.extents.start.width && desc.width <= caps.extents.end.width &&
|
||||
desc.height >= caps.extents.start.height && desc.height <= caps.extents.end.height,
|
||||
"Requested size {}x{} is outside of the supported range: {:?}",
|
||||
desc.width, desc.height, caps.extents);
|
||||
|
||||
*/
|
||||
|
||||
let (old_raw, sem_available, command_pool) = match surface.swap_chain.take() {
|
||||
Some(mut old) => {
|
||||
//TODO: remove this once gfx-rs stops destroying the old swapchain
|
||||
device.raw.wait_idle().unwrap();
|
||||
let mut destroyed = device.destroyed.lock();
|
||||
assert_eq!(old.device_id.value, device_id);
|
||||
for frame in old.frames {
|
||||
|
Loading…
Reference in New Issue
Block a user