mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-12 22:14:58 +00:00
d3d12: CMP vertex format has 4 members.
Fix 1878
This commit is contained in:
parent
30b804e0bc
commit
14205d3d1c
@ -455,10 +455,10 @@ DXGI_FORMAT get_vertex_attribute_format(rsx::vertex_base_type type, u8 size)
|
||||
{
|
||||
switch (size)
|
||||
{
|
||||
case 1: return DXGI_FORMAT_R16G16B16A16_SNORM;
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4: fmt::throw_exception("Unsupported CMP vertex format with size > 1" HERE);
|
||||
case 3: fmt::throw_exception("Unsupported CMP vertex format with size > 1" HERE);
|
||||
case 4: return DXGI_FORMAT_R16G16B16A16_SNORM;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -38,6 +38,8 @@ public:
|
||||
|
||||
u8 size() const
|
||||
{
|
||||
if (decode_reg().type() == rsx::vertex_base_type::cmp)
|
||||
return 4;
|
||||
return decode_reg().size();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user