diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-31 04:44:28 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:37 +0200 |
commit | e10366974edd7c75111d0bef16daf941db9e9a30 (patch) | |
tree | e7e986cc5f7184dba92ac2e6325ac3948111f08d /src/shader_recompiler/backend/glsl/var_alloc.cpp | |
parent | HACK glsl: Write defaults to unused generic attributes (diff) | |
download | yuzu-e10366974edd7c75111d0bef16daf941db9e9a30.tar yuzu-e10366974edd7c75111d0bef16daf941db9e9a30.tar.gz yuzu-e10366974edd7c75111d0bef16daf941db9e9a30.tar.bz2 yuzu-e10366974edd7c75111d0bef16daf941db9e9a30.tar.lz yuzu-e10366974edd7c75111d0bef16daf941db9e9a30.tar.xz yuzu-e10366974edd7c75111d0bef16daf941db9e9a30.tar.zst yuzu-e10366974edd7c75111d0bef16daf941db9e9a30.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glsl/var_alloc.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/var_alloc.cpp b/src/shader_recompiler/backend/glsl/var_alloc.cpp index 896457248..2ecdec7f2 100644 --- a/src/shader_recompiler/backend/glsl/var_alloc.cpp +++ b/src/shader_recompiler/backend/glsl/var_alloc.cpp @@ -43,6 +43,10 @@ std::string TypePrefix(GlslVarType type) { return "u4_"; case GlslVarType::F32x4: return "f4_"; + case GlslVarType::PrecF32: + return "pf_"; + case GlslVarType::PrecF64: + return "pd_"; case GlslVarType::Void: return ""; default: @@ -225,6 +229,10 @@ std::string VarAlloc::GetGlslType(GlslVarType type) const { return "uvec4 "; case GlslVarType::F32x4: return "vec4 "; + case GlslVarType::PrecF32: + return "precise float "; + case GlslVarType::PrecF64: + return "precise double "; case GlslVarType::Void: return ""; default: @@ -262,6 +270,10 @@ VarAlloc::UseTracker& VarAlloc::GetUseTracker(GlslVarType type) { return var_u32x4; case GlslVarType::F32x4: return var_f32x4; + case GlslVarType::PrecF32: + return var_precf32; + case GlslVarType::PrecF64: + return var_precf64; default: throw NotImplementedException("Type {}", type); } @@ -297,6 +309,10 @@ const VarAlloc::UseTracker& VarAlloc::GetUseTracker(GlslVarType type) const { return var_u32x4; case GlslVarType::F32x4: return var_f32x4; + case GlslVarType::PrecF32: + return var_precf32; + case GlslVarType::PrecF64: + return var_precf64; default: throw NotImplementedException("Type {}", type); } |