VK: Mark BGRA8/RGBA8 as valid backbuffer texture formats when in headless mode. (#3824)

This commit is contained in:
Branimir Karadžić
2026-07-12 00:00:47 -07:00
committed by GitHub
parent 298f68a6ed
commit 3920502547
+13
View File
@@ -2198,6 +2198,19 @@ VK_IMPORT_DEVICE
}
}
}
else
{
static const TextureFormat::Enum headlessBackbufferFormats[] =
{
TextureFormat::BGRA8,
TextureFormat::RGBA8,
};
for (uint32_t ii = 0; ii < BX_COUNTOF(headlessBackbufferFormats); ++ii)
{
g_caps.formats[headlessBackbufferFormats[ii] ] |= BGFX_CAPS_FORMAT_TEXTURE_BACKBUFFER;
}
}
}
errorState = ErrorState::SwapChainCreated;