fix(overhaul): integrate reviewed resize capture sequencing
This commit is contained in:
parent
58185285d3
commit
1e376c244b
5 changed files with 205 additions and 0 deletions
|
|
@ -246,8 +246,19 @@ public sealed class RetailUiAutomationScriptRunner : IDisposable
|
|||
var command = _commands[_index];
|
||||
bool finished = Execute(command);
|
||||
if (!finished) break;
|
||||
bool yieldAfterResize = command.Parts.Length > 0
|
||||
&& string.Equals(
|
||||
command.Parts[0],
|
||||
"resize",
|
||||
StringComparison.OrdinalIgnoreCase);
|
||||
_index++;
|
||||
_activeIndex = -1;
|
||||
// Resize is applied while automation is inside private presentation,
|
||||
// after Vulkan prepared the current frame. Yield so the following
|
||||
// framebuffer wait cannot observe the new window size until the
|
||||
// next render has crossed its frame-boundary swapchain recreation.
|
||||
if (yieldAfterResize)
|
||||
break;
|
||||
}
|
||||
|
||||
if (_index >= _commands.Count && !_completed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue