[d3d11] Add fallthrough comment to PickFormats

Silences a warning
This commit is contained in:
Joshua Ashton 2022-03-09 21:35:21 +00:00 committed by Philip Rebohle
parent dc6c350cf2
commit 63bd41f785
1 changed files with 2 additions and 1 deletions

View File

@ -588,7 +588,8 @@ namespace dxvk {
switch (Format) {
default:
Logger::warn(str::format("D3D11SwapChain: Unexpected format: ", m_desc.Format));
[[fallthrough]];
case DXGI_FORMAT_R8G8B8A8_UNORM:
case DXGI_FORMAT_B8G8R8A8_UNORM: {
pDstFormats[n++] = { VK_FORMAT_R8G8B8A8_UNORM, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR };