feat: bound scene visibility rendering and continuous native input
This commit is contained in:
@@ -5281,6 +5281,28 @@ fn world_ui_example_runs_with_window_constraints_and_programmable_actions() {
|
||||
)
|
||||
.unwrap();
|
||||
document.validate().unwrap();
|
||||
let viewports = std::collections::BTreeMap::from([(
|
||||
crate::window::MAIN_WINDOW,
|
||||
crate::layout::Size {
|
||||
width: 1024.,
|
||||
height: 800.,
|
||||
},
|
||||
)]);
|
||||
for _ in 0..3 {
|
||||
assert!(
|
||||
session
|
||||
.resize_windows_incremental(&viewports, true)
|
||||
.unwrap()
|
||||
.is_none(),
|
||||
"unchanged viewport must stay idle"
|
||||
);
|
||||
assert!(
|
||||
session
|
||||
.poll_tasks_incremental(&viewports)
|
||||
.unwrap()
|
||||
.is_none()
|
||||
);
|
||||
}
|
||||
assert!(
|
||||
document
|
||||
.frame
|
||||
|
||||
Reference in New Issue
Block a user