mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 12:27:34 +01:00
Merge pull request #3842 from makigumo/maxwell_to_vk_vertexattribute_signed_int
maxwell_to_vk: implement missing signed int formats
This commit is contained in:
commit
a9ee6e346b
@ -345,8 +345,6 @@ VkFormat VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttrib
|
|||||||
break;
|
break;
|
||||||
case Maxwell::VertexAttribute::Type::SignedInt:
|
case Maxwell::VertexAttribute::Type::SignedInt:
|
||||||
switch (size) {
|
switch (size) {
|
||||||
case Maxwell::VertexAttribute::Size::Size_16_16_16_16:
|
|
||||||
return VK_FORMAT_R16G16B16A16_SINT;
|
|
||||||
case Maxwell::VertexAttribute::Size::Size_8:
|
case Maxwell::VertexAttribute::Size::Size_8:
|
||||||
return VK_FORMAT_R8_SINT;
|
return VK_FORMAT_R8_SINT;
|
||||||
case Maxwell::VertexAttribute::Size::Size_8_8:
|
case Maxwell::VertexAttribute::Size::Size_8_8:
|
||||||
@ -355,8 +353,22 @@ VkFormat VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttrib
|
|||||||
return VK_FORMAT_R8G8B8_SINT;
|
return VK_FORMAT_R8G8B8_SINT;
|
||||||
case Maxwell::VertexAttribute::Size::Size_8_8_8_8:
|
case Maxwell::VertexAttribute::Size::Size_8_8_8_8:
|
||||||
return VK_FORMAT_R8G8B8A8_SINT;
|
return VK_FORMAT_R8G8B8A8_SINT;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_16:
|
||||||
|
return VK_FORMAT_R16_SINT;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_16_16:
|
||||||
|
return VK_FORMAT_R16G16_SINT;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_16_16_16:
|
||||||
|
return VK_FORMAT_R16G16B16_SINT;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_16_16_16_16:
|
||||||
|
return VK_FORMAT_R16G16B16A16_SINT;
|
||||||
case Maxwell::VertexAttribute::Size::Size_32:
|
case Maxwell::VertexAttribute::Size::Size_32:
|
||||||
return VK_FORMAT_R32_SINT;
|
return VK_FORMAT_R32_SINT;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_32_32:
|
||||||
|
return VK_FORMAT_R32G32_SINT;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_32_32_32:
|
||||||
|
return VK_FORMAT_R32G32B32_SINT;
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_32_32_32_32:
|
||||||
|
return VK_FORMAT_R32G32B32A32_SINT;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user