mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Move most backend functionality to VideoCommon
This commit is contained in:
@ -104,17 +104,17 @@ struct hash<PortableVertexDeclaration>
|
||||
class NativeVertexFormat
|
||||
{
|
||||
public:
|
||||
NativeVertexFormat(const PortableVertexDeclaration& vtx_decl) : m_decl(vtx_decl) {}
|
||||
virtual ~NativeVertexFormat() {}
|
||||
|
||||
NativeVertexFormat(const NativeVertexFormat&) = delete;
|
||||
NativeVertexFormat& operator=(const NativeVertexFormat&) = delete;
|
||||
NativeVertexFormat(NativeVertexFormat&&) = default;
|
||||
NativeVertexFormat& operator=(NativeVertexFormat&&) = default;
|
||||
|
||||
u32 GetVertexStride() const { return vtx_decl.stride; }
|
||||
const PortableVertexDeclaration& GetVertexDeclaration() const { return vtx_decl; }
|
||||
u32 GetVertexStride() const { return m_decl.stride; }
|
||||
const PortableVertexDeclaration& GetVertexDeclaration() const { return m_decl; }
|
||||
|
||||
protected:
|
||||
// Let subclasses construct.
|
||||
NativeVertexFormat() {}
|
||||
PortableVertexDeclaration vtx_decl;
|
||||
PortableVertexDeclaration m_decl;
|
||||
};
|
||||
|
Reference in New Issue
Block a user