summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-10 04:55:21 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-12-10 05:55:38 +0100
commit233ed96a5ca99a9819b35292567007b324c81e6c (patch)
treee7f42fb2af3b1d83665725db9034d8fb6f3d6c78 /src
parentvk_shader_decompiler: Reduce YNegate's severity (diff)
downloadyuzu-233ed96a5ca99a9819b35292567007b324c81e6c.tar
yuzu-233ed96a5ca99a9819b35292567007b324c81e6c.tar.gz
yuzu-233ed96a5ca99a9819b35292567007b324c81e6c.tar.bz2
yuzu-233ed96a5ca99a9819b35292567007b324c81e6c.tar.lz
yuzu-233ed96a5ca99a9819b35292567007b324c81e6c.tar.xz
yuzu-233ed96a5ca99a9819b35292567007b324c81e6c.tar.zst
yuzu-233ed96a5ca99a9819b35292567007b324c81e6c.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_shader_decompiler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
index c1408d862..8ad89b58a 100644
--- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
+++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
@@ -1018,7 +1018,7 @@ private:
return {OpLoad(t_float, AccessElement(t_in_float, frag_coord, element)),
Type::Float};
}
- const auto elements = {in_indices.position.value(), element};
+ const std::vector elements = {in_indices.position.value(), element};
return {OpLoad(t_float, ArrayPass(t_in_float, in_vertex, elements)), Type::Float};
}
case Attribute::Index::PointCoord: {
@@ -1064,7 +1064,8 @@ private:
const auto type_descriptor = GetAttributeType(location);
const Type type = type_descriptor.type;
const Id attribute_id = input_attributes.at(attribute);
- const Id pointer = ArrayPass(type_descriptor.scalar, attribute_id, {element});
+ const std::vector elements = {element};
+ const Id pointer = ArrayPass(type_descriptor.scalar, attribute_id, elements);
return {OpLoad(GetTypeDefinition(type), pointer), type};
}
break;