Skip to content

Commit

Permalink
perf: 优化 Anime4K_3D_Upscale_US 和 Anime4K_Restore_L
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Jan 7, 2025
1 parent c2b60d3 commit 9fac81d
Show file tree
Hide file tree
Showing 4 changed files with 472 additions and 469 deletions.
2 changes: 1 addition & 1 deletion src/Effects/Anime4K/Anime4K_3D_AA_Upscale_US.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "..\StubDefs.hlsli"


//!TEXTURE
Texture2D INPUT;

Expand Down Expand Up @@ -234,7 +235,6 @@ void Pass3(uint2 blockStart, uint3 threadId) {
pos.x += outputPt.x;
OUTPUT[gxy] = MF4(result.y + INPUT.SampleLevel(sam1, pos, 0).rgb, 1);


++gxy.y;
pos.y += outputPt.y;
OUTPUT[gxy] = MF4(result.w + INPUT.SampleLevel(sam1, pos, 0).rgb, 1);
Expand Down
Loading

0 comments on commit 9fac81d

Please sign in to comment.