VertexLoader: Optimize GetVertexSize

GetComponentSizes was unused, so we simplify this and get rid
of the branches.
This commit is contained in:
Robin Kertels
2022-09-14 20:42:56 +02:00
parent 3420823002
commit 8aa214453a
2 changed files with 11 additions and 31 deletions

View File

@ -62,7 +62,6 @@ class VertexLoaderBase
public:
static u32 GetVertexSize(const TVtxDesc& vtx_desc, const VAT& vtx_attr);
static u32 GetVertexComponents(const TVtxDesc& vtx_desc, const VAT& vtx_attr);
static std::vector<u32> GetVertexComponentSizes(const TVtxDesc& vtx_desc, const VAT& vtx_attr);
static std::unique_ptr<VertexLoaderBase> CreateVertexLoader(const TVtxDesc& vtx_desc,
const VAT& vtx_attr);
virtual ~VertexLoaderBase() {}