NativeVertexFormat: Drop unused virtual method SetupVertexPointers

This commit is contained in:
Stenzek 2017-07-03 20:18:27 +10:00
parent 33f6668544
commit 25338c53e0
9 changed files with 0 additions and 23 deletions

View File

@ -119,10 +119,6 @@ D3DVertexFormat::~D3DVertexFormat()
SAFE_RELEASE(m_layout);
}
void D3DVertexFormat::SetupVertexPointers()
{
}
void D3DVertexFormat::SetInputLayout(D3DBlob* vs_bytecode)
{
if (!m_layout)

View File

@ -19,7 +19,6 @@ class D3DVertexFormat : public NativeVertexFormat
public:
D3DVertexFormat(const PortableVertexDeclaration& vtx_decl);
~D3DVertexFormat();
void SetupVertexPointers() override;
void SetInputLayout(D3DBlob* vs_bytecode);
private:

View File

@ -16,7 +16,6 @@ class NullNativeVertexFormat : public NativeVertexFormat
{
public:
NullNativeVertexFormat() {}
void SetupVertexPointers() override {}
};
std::unique_ptr<NativeVertexFormat>

View File

@ -81,8 +81,4 @@ GLVertexFormat::~GLVertexFormat()
{
glDeleteVertexArrays(1, &VAO);
}
void GLVertexFormat::SetupVertexPointers()
{
}
}

View File

@ -20,8 +20,6 @@ public:
GLVertexFormat(const PortableVertexDeclaration& vtx_decl);
~GLVertexFormat();
void SetupVertexPointers() override;
GLuint VAO;
};

View File

@ -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>

View File

@ -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

View File

@ -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);

View File

@ -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: