summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-12-16 02:12:51 -0300
committerGravatar ReinUsesLisp2019-12-16 02:12:51 -0300
commita87c85eba2479d41b8df527214c1af8c8c32d01d (patch)
tree9d4aacf32cde91dd004d503aac4f9d8612060a7b /src
parentshader/texture: Implement AOFFI for TLD4S (diff)
downloadyuzu-a87c85eba2479d41b8df527214c1af8c8c32d01d.tar.gz
yuzu-a87c85eba2479d41b8df527214c1af8c8c32d01d.tar.xz
yuzu-a87c85eba2479d41b8df527214c1af8c8c32d01d.zip
gl_shader_decompiler: Rename "sepparate" to "separate"
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index d1ae4be6d..6b4b8ff67 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -1076,7 +1076,7 @@ private:
1076 } 1076 }
1077 1077
1078 std::string GenerateTexture(Operation operation, const std::string& function_suffix, 1078 std::string GenerateTexture(Operation operation, const std::string& function_suffix,
1079 const std::vector<TextureIR>& extras, bool sepparate_dc = false) { 1079 const std::vector<TextureIR>& extras, bool separate_dc = false) {
1080 constexpr std::array coord_constructors = {"float", "vec2", "vec3", "vec4"}; 1080 constexpr std::array coord_constructors = {"float", "vec2", "vec3", "vec4"};
1081 1081
1082 const auto meta = std::get_if<MetaTexture>(&operation.GetMeta()); 1082 const auto meta = std::get_if<MetaTexture>(&operation.GetMeta());
@@ -1092,7 +1092,7 @@ private:
1092 } 1092 }
1093 expr += '(' + GetSampler(meta->sampler) + ", "; 1093 expr += '(' + GetSampler(meta->sampler) + ", ";
1094 expr += coord_constructors.at(count + (has_array ? 1 : 0) + 1094 expr += coord_constructors.at(count + (has_array ? 1 : 0) +
1095 (has_shadow && !sepparate_dc ? 1 : 0) - 1); 1095 (has_shadow && !separate_dc ? 1 : 0) - 1);
1096 expr += '('; 1096 expr += '(';
1097 for (std::size_t i = 0; i < count; ++i) { 1097 for (std::size_t i = 0; i < count; ++i) {
1098 expr += Visit(operation[i]).AsFloat(); 1098 expr += Visit(operation[i]).AsFloat();
@@ -1105,7 +1105,7 @@ private:
1105 expr += ", float(" + Visit(meta->array).AsInt() + ')'; 1105 expr += ", float(" + Visit(meta->array).AsInt() + ')';
1106 } 1106 }
1107 if (has_shadow) { 1107 if (has_shadow) {
1108 if (sepparate_dc) { 1108 if (separate_dc) {
1109 expr += "), " + Visit(meta->depth_compare).AsFloat(); 1109 expr += "), " + Visit(meta->depth_compare).AsFloat();
1110 } else { 1110 } else {
1111 expr += ", " + Visit(meta->depth_compare).AsFloat() + ')'; 1111 expr += ", " + Visit(meta->depth_compare).AsFloat() + ')';