diff options
author | Viktor Szépe <viktor@szepe.net> | 2024-01-07 23:44:55 +0100 |
---|---|---|
committer | Viktor Szépe <viktor@szepe.net> | 2024-01-07 23:44:55 +0100 |
commit | 53085a45e0b2cc995f4056de40116a66f7ae7c08 (patch) | |
tree | 532a7e9b391510ea4e9fb254d669b405de7b289d /src/video_core/host_shaders | |
parent | Merge pull request #12560 from GayPotatoEmma/master (diff) | |
download | yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.gz yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.bz2 yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.lz yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.xz yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.zst yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.zip |
Diffstat (limited to 'src/video_core/host_shaders')
-rw-r--r-- | src/video_core/host_shaders/astc_decoder.comp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/video_core/host_shaders/astc_decoder.comp b/src/video_core/host_shaders/astc_decoder.comp index 5ff17cd0c..6e4535d45 100644 --- a/src/video_core/host_shaders/astc_decoder.comp +++ b/src/video_core/host_shaders/astc_decoder.comp @@ -803,7 +803,7 @@ void UnquantizeTexelWeights(uvec2 size, bool is_dual_plane) { } } -uint GetUnquantizedTexelWieght(uint offset_base, uint plane, bool is_dual_plane) { +uint GetUnquantizedTexelWeight(uint offset_base, uint plane, bool is_dual_plane) { const uint offset = is_dual_plane ? 2 * offset_base + plane : offset_base; return result_vector[offset]; } @@ -833,23 +833,23 @@ uvec4 GetUnquantizedWeightVector(uint t, uint s, uvec2 size, uint plane_index, b if (v0 < area) { const uint offset_base = v0; - p0.x = GetUnquantizedTexelWieght(offset_base, 0, is_dual_plane); - p1.x = GetUnquantizedTexelWieght(offset_base, 1, is_dual_plane); + p0.x = GetUnquantizedTexelWeight(offset_base, 0, is_dual_plane); + p1.x = GetUnquantizedTexelWeight(offset_base, 1, is_dual_plane); } if ((v0 + 1) < (area)) { const uint offset_base = v0 + 1; - p0.y = GetUnquantizedTexelWieght(offset_base, 0, is_dual_plane); - p1.y = GetUnquantizedTexelWieght(offset_base, 1, is_dual_plane); + p0.y = GetUnquantizedTexelWeight(offset_base, 0, is_dual_plane); + p1.y = GetUnquantizedTexelWeight(offset_base, 1, is_dual_plane); } if ((v0 + size.x) < (area)) { const uint offset_base = v0 + size.x; - p0.z = GetUnquantizedTexelWieght(offset_base, 0, is_dual_plane); - p1.z = GetUnquantizedTexelWieght(offset_base, 1, is_dual_plane); + p0.z = GetUnquantizedTexelWeight(offset_base, 0, is_dual_plane); + p1.z = GetUnquantizedTexelWeight(offset_base, 1, is_dual_plane); } if ((v0 + size.x + 1) < (area)) { const uint offset_base = v0 + size.x + 1; - p0.w = GetUnquantizedTexelWieght(offset_base, 0, is_dual_plane); - p1.w = GetUnquantizedTexelWieght(offset_base, 1, is_dual_plane); + p0.w = GetUnquantizedTexelWeight(offset_base, 0, is_dual_plane); + p1.w = GetUnquantizedTexelWeight(offset_base, 1, is_dual_plane); } const uint primary_weight = (uint(dot(p0, w)) + 8) >> 4; |