mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 16:24:24 +00:00
Fix vertex format mapping
This commit is contained in:
parent
004b43ca6d
commit
c0b84b3e15
@ -373,11 +373,11 @@ pub fn map_vertex_format(vertex_format: pipeline::VertexFormat) -> hal::format::
|
|||||||
Char2 => H::Rg8Int,
|
Char2 => H::Rg8Int,
|
||||||
Char3 => H::Rgb8Int,
|
Char3 => H::Rgb8Int,
|
||||||
Char4 => H::Rgba8Int,
|
Char4 => H::Rgba8Int,
|
||||||
UcharNorm => H::R8Srgb,
|
UcharNorm => H::R8Unorm,
|
||||||
Uchar2Norm => H::Rg8Srgb,
|
Uchar2Norm => H::Rg8Unorm,
|
||||||
Uchar3Norm => H::Rgb8Srgb,
|
Uchar3Norm => H::Rgb8Unorm,
|
||||||
Uchar4Norm => H::Rgba8Srgb,
|
Uchar4Norm => H::Rgba8Unorm,
|
||||||
Uchar4NormBgra => H::Bgra8Srgb,
|
Uchar4NormBgra => H::Bgra8Unorm,
|
||||||
CharNorm => H::R8Inorm,
|
CharNorm => H::R8Inorm,
|
||||||
Char2Norm => H::Rg8Inorm,
|
Char2Norm => H::Rg8Inorm,
|
||||||
Char3Norm => H::Rgb8Inorm,
|
Char3Norm => H::Rgb8Inorm,
|
||||||
|
Loading…
Reference in New Issue
Block a user