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);
|
SAFE_RELEASE(m_layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
void D3DVertexFormat::SetupVertexPointers()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void D3DVertexFormat::SetInputLayout(D3DBlob* vs_bytecode)
|
void D3DVertexFormat::SetInputLayout(D3DBlob* vs_bytecode)
|
||||||
{
|
{
|
||||||
if (!m_layout)
|
if (!m_layout)
|
||||||
|
|
|
@ -19,7 +19,6 @@ class D3DVertexFormat : public NativeVertexFormat
|
||||||
public:
|
public:
|
||||||
D3DVertexFormat(const PortableVertexDeclaration& vtx_decl);
|
D3DVertexFormat(const PortableVertexDeclaration& vtx_decl);
|
||||||
~D3DVertexFormat();
|
~D3DVertexFormat();
|
||||||
void SetupVertexPointers() override;
|
|
||||||
void SetInputLayout(D3DBlob* vs_bytecode);
|
void SetInputLayout(D3DBlob* vs_bytecode);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -16,7 +16,6 @@ class NullNativeVertexFormat : public NativeVertexFormat
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NullNativeVertexFormat() {}
|
NullNativeVertexFormat() {}
|
||||||
void SetupVertexPointers() override {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
std::unique_ptr<NativeVertexFormat>
|
std::unique_ptr<NativeVertexFormat>
|
||||||
|
|
|
@ -81,8 +81,4 @@ GLVertexFormat::~GLVertexFormat()
|
||||||
{
|
{
|
||||||
glDeleteVertexArrays(1, &VAO);
|
glDeleteVertexArrays(1, &VAO);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLVertexFormat::SetupVertexPointers()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,6 @@ public:
|
||||||
GLVertexFormat(const PortableVertexDeclaration& vtx_decl);
|
GLVertexFormat(const PortableVertexDeclaration& vtx_decl);
|
||||||
~GLVertexFormat();
|
~GLVertexFormat();
|
||||||
|
|
||||||
void SetupVertexPointers() override;
|
|
||||||
|
|
||||||
GLuint VAO;
|
GLuint VAO;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ class NullNativeVertexFormat : public NativeVertexFormat
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NullNativeVertexFormat(const PortableVertexDeclaration& _vtx_decl) { vtx_decl = _vtx_decl; }
|
NullNativeVertexFormat(const PortableVertexDeclaration& _vtx_decl) { vtx_decl = _vtx_decl; }
|
||||||
void SetupVertexPointers() override {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
std::unique_ptr<NativeVertexFormat>
|
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_attribute_descriptions[m_num_attributes].offset = offset;
|
||||||
m_num_attributes++;
|
m_num_attributes++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void VertexFormat::SetupVertexPointers()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Vulkan
|
} // namespace Vulkan
|
||||||
|
|
|
@ -23,9 +23,6 @@ public:
|
||||||
void MapAttributes();
|
void MapAttributes();
|
||||||
void SetupInputState();
|
void SetupInputState();
|
||||||
|
|
||||||
// Not used in the Vulkan backend.
|
|
||||||
void SetupVertexPointers() override;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void AddAttribute(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);
|
void AddAttribute(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);
|
||||||
|
|
||||||
|
|
|
@ -106,8 +106,6 @@ class NativeVertexFormat : NonCopyable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~NativeVertexFormat() {}
|
virtual ~NativeVertexFormat() {}
|
||||||
virtual void SetupVertexPointers() = 0;
|
|
||||||
|
|
||||||
u32 GetVertexStride() const { return vtx_decl.stride; }
|
u32 GetVertexStride() const { return vtx_decl.stride; }
|
||||||
const PortableVertexDeclaration& GetVertexDeclaration() const { return vtx_decl; }
|
const PortableVertexDeclaration& GetVertexDeclaration() const { return vtx_decl; }
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Reference in New Issue