summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VertexFormat.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2017-07-20 15:25:35 +1000
committerStenzek <stenzek@gmail.com>2017-07-30 17:43:59 +1000
commit81b4ed2a81d7bada71a115efc7fb2347378fb975 (patch)
treeba6884e584fc23b872f8b4679cd919085b92ddf9 /Source/Core/VideoBackends/Vulkan/VertexFormat.cpp
parent4bf562589565636382b81313c2de0482e45743c0 (diff)
Vulkan: Uber shader support
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VertexFormat.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VertexFormat.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VertexFormat.cpp b/Source/Core/VideoBackends/Vulkan/VertexFormat.cpp
index 1d35177252..08daba3fe5 100644
--- a/Source/Core/VideoBackends/Vulkan/VertexFormat.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VertexFormat.cpp
@@ -53,17 +53,9 @@ VertexFormat::VertexFormat(const PortableVertexDeclaration& in_vtx_decl)
SetupInputState();
}
-VertexFormat* VertexFormat::GetOrCreateMatchingFormat(const PortableVertexDeclaration& decl)
+const VkPipelineVertexInputStateCreateInfo& VertexFormat::GetVertexInputStateInfo() const
{
- auto vertex_format_map = VertexLoaderManager::GetNativeVertexFormatMap();
- auto iter = vertex_format_map->find(decl);
- if (iter == vertex_format_map->end())
- {
- auto ipair = vertex_format_map->emplace(decl, std::make_unique<VertexFormat>(decl));
- iter = ipair.first;
- }
-
- return static_cast<VertexFormat*>(iter->second.get());
+ return m_input_state_info;
}
void VertexFormat::MapAttributes()