summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-06-01 00:40:17 +0200
committerGitHub <noreply@github.com>2020-06-01 00:40:17 +0200
commite68ee43a1a99dd62d8f6a6a469764a6737b4e0e8 (patch)
treef9714b1ff0f6dbfeb1255d7b6ec16d22327a8d0f /src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
parentUpdate CMakeLists.txt (diff)
parentvk_rasterizer: Implement constant attributes (diff)
downloadyuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar
yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar.gz
yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar.bz2
yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar.lz
yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar.xz
yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar.zst
yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.zip
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_pipeline_cache.cpp')
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
index a5c7b7945..65a1c6245 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
@@ -312,7 +312,9 @@ VKPipelineCache::DecompileShaders(const GraphicsPipelineCacheKey& key) {
ASSERT(point_size != 0.0f);
}
for (std::size_t i = 0; i < Maxwell::NumVertexAttributes; ++i) {
- specialization.attribute_types[i] = fixed_state.vertex_input.attributes[i].Type();
+ const auto& attribute = fixed_state.vertex_input.attributes[i];
+ specialization.enabled_attributes[i] = attribute.enabled.Value() != 0;
+ specialization.attribute_types[i] = attribute.Type();
}
specialization.ndc_minus_one_to_one = fixed_state.rasterizer.ndc_minus_one_to_one;