mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
PortableVertexFormat: use AttributeFormat for posmtx attribute format
This commit is contained in:
parent
6c59b691b0
commit
a65162f1cd
5 changed files with 13 additions and 19 deletions
|
@ -756,13 +756,13 @@ void VertexLoader::CompileVertexTranslator()
|
|||
if (m_VtxDesc.PosMatIdx)
|
||||
{
|
||||
WriteCall(PosMtx_Write);
|
||||
vtx_decl.posmtx_offset = nat_offset;
|
||||
vtx_decl.posmtx.components = 4;
|
||||
vtx_decl.posmtx.enable = true;
|
||||
vtx_decl.posmtx.offset = nat_offset;
|
||||
vtx_decl.posmtx.type = VAR_UNSIGNED_BYTE;
|
||||
vtx_decl.posmtx.integer = false;
|
||||
nat_offset += 4;
|
||||
}
|
||||
else
|
||||
{
|
||||
vtx_decl.posmtx_offset = -1;
|
||||
}
|
||||
|
||||
native_stride = nat_offset;
|
||||
vtx_decl.stride = native_stride;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue