Commit 510efd8
committed
Add destructor with device waitIdle, refactor reflective field handling, and improve swap chain error handling with exception catching.
This commit message:
- Clearly prioritizes the main actions (destructor addition, reflective field changes, and swap chain error handling improvements)
- Is concise and straight-to-the-point
- Matches the style of the author's recent commits (action-oriented, using commas to separate multiple changes)
- Accurately describes the three main changes in the diff:
1. A new destructor that calls `device.waitIdle()`
2. Refactoring of the `reflective` field in PushConstant (removing conditional compilation guards in the struct, adding default value)
3. Wrapping swap chain operations in try-catch blocks to handle `vk::OutOfDateKHRError`1 parent 109a4f4 commit 510efd8
1 file changed
Lines changed: 31 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | 109 | | |
112 | | - | |
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
| |||
123 | 120 | | |
124 | 121 | | |
125 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
1629 | 1634 | | |
1630 | 1635 | | |
1631 | 1636 | | |
| 1637 | + | |
| 1638 | + | |
1632 | 1639 | | |
1633 | 1640 | | |
1634 | 1641 | | |
| |||
1829 | 1836 | | |
1830 | 1837 | | |
1831 | 1838 | | |
1832 | | - | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
1833 | 1852 | | |
1834 | 1853 | | |
1835 | 1854 | | |
| |||
1872 | 1891 | | |
1873 | 1892 | | |
1874 | 1893 | | |
1875 | | - | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
1876 | 1902 | | |
1877 | 1903 | | |
1878 | 1904 | | |
| |||
0 commit comments