mirror of
https://github.com/libretro/snes9x.git
synced 2024-11-27 18:40:39 +00:00
Favor BGRA over RGBA.
This commit is contained in:
parent
246a44a940
commit
56a6396c9a
@ -110,9 +110,9 @@ SlangPipeline::~SlangPipeline()
|
||||
|
||||
bool SlangPipeline::generate_pipeline(bool lastpass)
|
||||
{
|
||||
VkFormat backup_format = VK_FORMAT_R8G8B8A8_UNORM;
|
||||
VkFormat backup_format = VK_FORMAT_B8G8R8A8_UNORM;
|
||||
if (shader->srgb_framebuffer)
|
||||
backup_format = VK_FORMAT_R8G8B8A8_SRGB;
|
||||
backup_format = VK_FORMAT_B8G8R8A8_SRGB;
|
||||
if (shader->float_framebuffer)
|
||||
backup_format = VK_FORMAT_R32G32B32A32_SFLOAT;
|
||||
this->format = vk::Format(format_string_to_format(shader->format, backup_format));
|
||||
|
Loading…
Reference in New Issue
Block a user