Fix vertex format mapping

This commit is contained in:
Lain-dono 2019-03-11 04:44:54 +03:00 committed by GitHub
parent 004b43ca6d
commit c0b84b3e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,