Commit 18244f4
vulkan/swapchain: prefer BGRA UNORM and RGBA FLOAT formats on Apple
Only VK_FORMAT_B8G8R8A8_UNORM, VK_FORMAT_A2R10G10B10_UNORM_PACK32 and
VK_FORMAT_R16G16B16A16_SFLOAT formats support direct-to-display
rendering on Apple, so give them a little score bump to prefer picking
them
This also reworks the score bump added in a4cd3d1 to be more in
line with other format related score bumps1 parent ea8cc49 commit 18244f4
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
230 | 247 | | |
231 | | - | |
| 248 | + | |
| 249 | + | |
232 | 250 | | |
233 | 251 | | |
234 | 252 | | |
| |||
0 commit comments