mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
VertexLoaderBase: Get rid of explicit delete and new
This commit is contained in:
parent
3cf16f8573
commit
8371c428cd
5 changed files with 24 additions and 24 deletions
|
@ -5,6 +5,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
@ -71,7 +72,7 @@ template <> struct hash<VertexLoaderUID>
|
|||
class VertexLoaderBase
|
||||
{
|
||||
public:
|
||||
static VertexLoaderBase* CreateVertexLoader(const TVtxDesc &vtx_desc, const VAT &vtx_attr);
|
||||
static std::unique_ptr<VertexLoaderBase> CreateVertexLoader(const TVtxDesc &vtx_desc, const VAT &vtx_attr);
|
||||
virtual ~VertexLoaderBase() {}
|
||||
|
||||
virtual int RunVertices(DataReader src, DataReader dst, int count) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue