Add DXGI_FORMAT_B8G8R8X8_UNORM as a supported capture format

This commit is contained in:
Cameron Gutman 2023-04-13 21:10:32 -05:00
parent b5c8bbaa24
commit 242a146712
2 changed files with 2 additions and 1 deletions

View File

@ -362,7 +362,7 @@ namespace platf::dxgi {
std::vector<DXGI_FORMAT>
display_ram_t::get_supported_capture_formats() {
return { DXGI_FORMAT_B8G8R8A8_UNORM };
return { DXGI_FORMAT_B8G8R8A8_UNORM, DXGI_FORMAT_B8G8R8X8_UNORM };
}
int

View File

@ -1229,6 +1229,7 @@ namespace platf::dxgi {
// while the client stream is HDR-capable. These UNORM formats can
// use our normal pixel shaders that expect sRGB input.
DXGI_FORMAT_B8G8R8A8_UNORM,
DXGI_FORMAT_B8G8R8X8_UNORM,
DXGI_FORMAT_R8G8B8A8_UNORM,
};
}