summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glsl/var_alloc.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-01 06:07:14 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:37 +0200
commit59576b82a8c06943e6b9fafbff6ed1884a4132a7 (patch)
tree68f1a4b587e5283524940466aafd1e1d4e3d6155 /src/shader_recompiler/backend/glsl/var_alloc.cpp
parentglsl: Implement tessellation shaders (diff)
downloadyuzu-59576b82a8c06943e6b9fafbff6ed1884a4132a7.tar
yuzu-59576b82a8c06943e6b9fafbff6ed1884a4132a7.tar.gz
yuzu-59576b82a8c06943e6b9fafbff6ed1884a4132a7.tar.bz2
yuzu-59576b82a8c06943e6b9fafbff6ed1884a4132a7.tar.lz
yuzu-59576b82a8c06943e6b9fafbff6ed1884a4132a7.tar.xz
yuzu-59576b82a8c06943e6b9fafbff6ed1884a4132a7.tar.zst
yuzu-59576b82a8c06943e6b9fafbff6ed1884a4132a7.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/backend/glsl/var_alloc.cpp34
1 files changed, 16 insertions, 18 deletions
diff --git a/src/shader_recompiler/backend/glsl/var_alloc.cpp b/src/shader_recompiler/backend/glsl/var_alloc.cpp
index 2ecdec7f2..1ab64add4 100644
--- a/src/shader_recompiler/backend/glsl/var_alloc.cpp
+++ b/src/shader_recompiler/backend/glsl/var_alloc.cpp
@@ -202,37 +202,35 @@ GlslVarType VarAlloc::RegType(IR::Type type) const {
std::string VarAlloc::GetGlslType(GlslVarType type) const {
switch (type) {
case GlslVarType::U1:
- return "bool ";
+ return "bool";
case GlslVarType::F16x2:
- return "f16vec2 ";
+ return "f16vec2";
case GlslVarType::U32:
- return "uint ";
+ return "uint";
case GlslVarType::S32:
- return "int ";
+ return "int";
case GlslVarType::F32:
- return "float ";
+ case GlslVarType::PrecF32:
+ return "float";
case GlslVarType::S64:
- return "int64_t ";
+ return "int64_t";
case GlslVarType::U64:
- return "uint64_t ";
+ return "uint64_t";
case GlslVarType::F64:
- return "double ";
+ case GlslVarType::PrecF64:
+ return "double";
case GlslVarType::U32x2:
- return "uvec2 ";
+ return "uvec2";
case GlslVarType::F32x2:
- return "vec2 ";
+ return "vec2";
case GlslVarType::U32x3:
- return "uvec3 ";
+ return "uvec3";
case GlslVarType::F32x3:
- return "vec3 ";
+ return "vec3";
case GlslVarType::U32x4:
- return "uvec4 ";
+ return "uvec4";
case GlslVarType::F32x4:
- return "vec4 ";
- case GlslVarType::PrecF32:
- return "precise float ";
- case GlslVarType::PrecF64:
- return "precise double ";
+ return "vec4";
case GlslVarType::Void:
return "";
default: