Skip to content

Commit

Permalink
Merge #1651
Browse files Browse the repository at this point in the history
1651: Fix Vulkan Backend Texture Format Mapping r=cwfitzgerald a=zicklag

Fixes the Bgra8UnormSrgb texture format.

**Connections**
Resolves #1646.

**Description**
Fixes the mappings between the `Bgra8UnormSrgb` and `Bgra8Unorm` texture formats and their Vulkan equivalents.

**Testing**
Tested on my Ubuntu 20.04 machine on:

- Intel(R) UHD Graphics (CML GT2) (Vulkan)
- GeForce GTX 1650 (Vulkan)


Co-authored-by: Zicklag <[email protected]>
  • Loading branch information
bors[bot] and zicklag authored Jul 14, 2021
2 parents 0f784bb + 2896a6e commit f11639e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu-hal/src/vulkan/conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ impl super::PrivateCapabilities {
Tf::Rg16Float => F::R16G16_SFLOAT,
Tf::Rgba8Unorm => F::R8G8B8A8_UNORM,
Tf::Rgba8UnormSrgb => F::R8G8B8A8_SRGB,
Tf::Bgra8UnormSrgb => F::B8G8R8A8_UNORM,
Tf::Bgra8UnormSrgb => F::B8G8R8A8_SRGB,
Tf::Rgba8Snorm => F::R8G8B8A8_SNORM,
Tf::Bgra8Unorm => F::B8G8R8A8_SNORM,
Tf::Bgra8Unorm => F::B8G8R8A8_UNORM,
Tf::Rgba8Uint => F::R8G8B8A8_UINT,
Tf::Rgba8Sint => F::R8G8B8A8_SINT,
Tf::Rgb10a2Unorm => F::A2B10G10R10_UNORM_PACK32,
Expand Down

0 comments on commit f11639e

Please sign in to comment.