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
commit 8aa214453a
No known key found for this signature in database
GPG key ID: 3824904F14D40757
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() {}