mirror of https://github.com/snes9xgit/snes9x.git
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)
|
bool SlangPipeline::generate_pipeline(bool lastpass)
|
||||||
{
|
{
|
||||||
VkFormat backup_format = VK_FORMAT_R8G8B8A8_UNORM;
|
VkFormat backup_format = VK_FORMAT_B8G8R8A8_UNORM;
|
||||||
if (shader->srgb_framebuffer)
|
if (shader->srgb_framebuffer)
|
||||||
backup_format = VK_FORMAT_R8G8B8A8_SRGB;
|
backup_format = VK_FORMAT_B8G8R8A8_SRGB;
|
||||||
if (shader->float_framebuffer)
|
if (shader->float_framebuffer)
|
||||||
backup_format = VK_FORMAT_R32G32B32A32_SFLOAT;
|
backup_format = VK_FORMAT_R32G32B32A32_SFLOAT;
|
||||||
this->format = vk::Format(format_string_to_format(shader->format, backup_format));
|
this->format = vk::Format(format_string_to_format(shader->format, backup_format));
|
||||||
|
|
Loading…
Reference in New Issue