mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
NativeVertexFormat: Drop unused virtual method SetupVertexPointers
This commit is contained in:
parent
33f6668544
commit
25338c53e0
@ -119,10 +119,6 @@ D3DVertexFormat::~D3DVertexFormat()
|
||||
SAFE_RELEASE(m_layout);
|
||||
}
|
||||
|
||||
void D3DVertexFormat::SetupVertexPointers()
|
||||
{
|
||||
}
|
||||
|
||||
void D3DVertexFormat::SetInputLayout(D3DBlob* vs_bytecode)
|
||||
{
|
||||
if (!m_layout)
|
||||
|
@ -19,7 +19,6 @@ class D3DVertexFormat : public NativeVertexFormat
|
||||
public:
|
||||
D3DVertexFormat(const PortableVertexDeclaration& vtx_decl);
|
||||
~D3DVertexFormat();
|
||||
void SetupVertexPointers() override;
|
||||
void SetInputLayout(D3DBlob* vs_bytecode);
|
||||
|
||||
private:
|
||||
|
@ -16,7 +16,6 @@ class NullNativeVertexFormat : public NativeVertexFormat
|
||||
{
|
||||
public:
|
||||
NullNativeVertexFormat() {}
|
||||
void SetupVertexPointers() override {}
|
||||
};
|
||||
|
||||
std::unique_ptr<NativeVertexFormat>
|
||||
|
@ -81,8 +81,4 @@ GLVertexFormat::~GLVertexFormat()
|
||||
{
|
||||
glDeleteVertexArrays(1, &VAO);
|
||||
}
|
||||
|
||||
void GLVertexFormat::SetupVertexPointers()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,6 @@ public:
|
||||
GLVertexFormat(const PortableVertexDeclaration& vtx_decl);
|
||||
~GLVertexFormat();
|
||||
|
||||
void SetupVertexPointers() override;
|
||||
|
||||
GLuint VAO;
|
||||
};
|
||||
|
||||
|
@ -30,7 +30,6 @@ class NullNativeVertexFormat : public NativeVertexFormat
|
||||
{
|
||||
public:
|
||||
NullNativeVertexFormat(const PortableVertexDeclaration& _vtx_decl) { vtx_decl = _vtx_decl; }
|
||||
void SetupVertexPointers() override {}
|
||||
};
|
||||
|
||||
std::unique_ptr<NativeVertexFormat>
|
||||
|
@ -128,9 +128,4 @@ void VertexFormat::AddAttribute(uint32_t location, uint32_t binding, VkFormat fo
|
||||
m_attribute_descriptions[m_num_attributes].offset = offset;
|
||||
m_num_attributes++;
|
||||
}
|
||||
|
||||
void VertexFormat::SetupVertexPointers()
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace Vulkan
|
||||
|
@ -23,9 +23,6 @@ public:
|
||||
void MapAttributes();
|
||||
void SetupInputState();
|
||||
|
||||
// Not used in the Vulkan backend.
|
||||
void SetupVertexPointers() override;
|
||||
|
||||
private:
|
||||
void AddAttribute(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);
|
||||
|
||||
|
@ -106,8 +106,6 @@ class NativeVertexFormat : NonCopyable
|
||||
{
|
||||
public:
|
||||
virtual ~NativeVertexFormat() {}
|
||||
virtual void SetupVertexPointers() = 0;
|
||||
|
||||
u32 GetVertexStride() const { return vtx_decl.stride; }
|
||||
const PortableVertexDeclaration& GetVertexDeclaration() const { return vtx_decl; }
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user