Add support for 32-bit indices.
Not clear how often these are used by games. Let's find out.
This commit is contained in:
parent
d85dce0c21
commit
1e0051a792
14 changed files with 181 additions and 97 deletions
|
@ -884,6 +884,8 @@ void GPU_Vulkan::Execute_Prim(u32 op, u32 diff) {
|
|||
int indexSize = 1;
|
||||
if ((gstate.vertType & GE_VTYPE_IDX_MASK) == GE_VTYPE_IDX_16BIT)
|
||||
indexSize = 2;
|
||||
else if ((gstate.vertType & GE_VTYPE_IDX_MASK) == GE_VTYPE_IDX_32BIT)
|
||||
indexSize = 4;
|
||||
gstate_c.indexAddr += count * indexSize;
|
||||
} else {
|
||||
gstate_c.vertexAddr += bytesRead;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue