Skip to content

Commit

Permalink
vulkan: fix rgb10a2 pixel format component order
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Dec 17, 2024
1 parent 486cc22 commit b152688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/vulkan/Vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ TextureFormat Vulkan::getTextureFormat(PixelFormat format)
textureFormat.internalFormat = VK_FORMAT_R5G6B5_UNORM_PACK16;
break;
case PIXELFORMAT_RGB10A2_UNORM: // LSB->MSB: [r: g: b: a]
textureFormat.internalFormat = VK_FORMAT_A2R10G10B10_UNORM_PACK32;
textureFormat.internalFormat = VK_FORMAT_A2B10G10R10_UNORM_PACK32;
break;
case PIXELFORMAT_RG11B10_FLOAT: // LSB->MSB: [r: g: b]
textureFormat.internalFormat = VK_FORMAT_B10G11R11_UFLOAT_PACK32;
Expand Down

0 comments on commit b152688

Please sign in to comment.