mirror of https://github.com/RPCS3/rpcs3.git
parent
30b804e0bc
commit
14205d3d1c
|
@ -455,10 +455,10 @@ DXGI_FORMAT get_vertex_attribute_format(rsx::vertex_base_type type, u8 size)
|
||||||
{
|
{
|
||||||
switch (size)
|
switch (size)
|
||||||
{
|
{
|
||||||
case 1: return DXGI_FORMAT_R16G16B16A16_SNORM;
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
case 3:
|
case 3: fmt::throw_exception("Unsupported CMP vertex format with size > 1" HERE);
|
||||||
case 4: fmt::throw_exception("Unsupported CMP vertex format with size > 1" HERE);
|
case 4: return DXGI_FORMAT_R16G16B16A16_SNORM;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,8 @@ public:
|
||||||
|
|
||||||
u8 size() const
|
u8 size() const
|
||||||
{
|
{
|
||||||
|
if (decode_reg().type() == rsx::vertex_base_type::cmp)
|
||||||
|
return 4;
|
||||||
return decode_reg().size();
|
return decode_reg().size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue