Commit d1e333b
committed
graphics/autotesting: skip backbuffer-clamp-to-window under autotesting
ConfirmRenderingSettings clamps the requested back-buffer size to fit
Window.ClientBounds — fine for dev, wrong for headless CI capture (a
portrait 640x1136 sample gets clipped to 640x749 on a shorter desktop).
Adds SkipBackBufferClampToWindow on GraphicsDeviceManager (copied to
PresentationParameters in ChangeOrCreateDevice). ConfirmRenderingSettings
honours it; the Vulkan swap-chain creation also bypasses
surfaceCapabilities.currentExtent when set. The autotesting harness sets
the flag in OnGameStarted, before device creation.1 parent 0b13c0b commit d1e333b
4 files changed
Lines changed: 21 additions & 4 deletions
File tree
- sources/engine
- Stride.Engine/Engine
- Stride.Games
- Stride.Graphics
- Vulkan
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
194 | 201 | | |
195 | 202 | | |
196 | 203 | | |
| |||
1185 | 1192 | | |
1186 | 1193 | | |
1187 | 1194 | | |
| 1195 | + | |
1188 | 1196 | | |
1189 | 1197 | | |
1190 | 1198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
436 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
437 | 440 | | |
438 | 441 | | |
439 | 442 | | |
| |||
0 commit comments