mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
maxwell_to_vk: implement signedscaled vertex formats
This commit is contained in:
parent
950b6dbc80
commit
744b207d92
1 changed files with 20 additions and 0 deletions
|
@ -401,6 +401,26 @@ vk::Format VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttr
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Maxwell::VertexAttribute::Type::SignedScaled:
|
case Maxwell::VertexAttribute::Type::SignedScaled:
|
||||||
|
switch (size) {
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_8:
|
||||||
|
return vk::Format::eR8Sscaled;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_8_8:
|
||||||
|
return vk::Format::eR8G8Sscaled;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_8_8_8:
|
||||||
|
return vk::Format::eR8G8B8Sscaled;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_8_8_8_8:
|
||||||
|
return vk::Format::eR8G8B8A8Sscaled;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_16:
|
||||||
|
return vk::Format::eR16Sscaled;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_16_16:
|
||||||
|
return vk::Format::eR16G16Sscaled;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_16_16_16:
|
||||||
|
return vk::Format::eR16G16B16Sscaled;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_16_16_16_16:
|
||||||
|
return vk::Format::eR16G16B16A16Sscaled;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case Maxwell::VertexAttribute::Type::Float:
|
case Maxwell::VertexAttribute::Type::Float:
|
||||||
switch (size) {
|
switch (size) {
|
||||||
|
|
Loading…
Reference in a new issue