Skip to content

Commit

Permalink
perf: 优化 FSRCNNX
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Jan 13, 2025
1 parent 87d5942 commit 7ca07db
Show file tree
Hide file tree
Showing 4 changed files with 588 additions and 581 deletions.
8 changes: 4 additions & 4 deletions src/Effects/CAS/CAS.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -259,18 +259,18 @@ void Pass1(uint2 blockStart, uint3 threadId) {
MF2 pixR, pixG, pixB;
CasFilterH(src, 0, peak, pixR, pixG, pixB);

OUTPUT[gxy] = MF4(MF3(pixR.x, pixG.x, pixB.x), 1);
OUTPUT[gxy] = MF4(pixR.x, pixG.x, pixB.x, 1);

++gxy.x;
OUTPUT[gxy] = MF4(MF3(pixR.y, pixG.y, pixB.y), 1);
OUTPUT[gxy] = MF4(pixR.y, pixG.y, pixB.y, 1);

CasFilterH(src, 1, peak, pixR, pixG, pixB);

++gxy.y;
OUTPUT[gxy] = MF4(MF3(pixR.y, pixG.y, pixB.y), 1);
OUTPUT[gxy] = MF4(pixR.y, pixG.y, pixB.y, 1);

--gxy.x;
OUTPUT[gxy] = MF4(MF3(pixR.x, pixG.x, pixB.x), 1);
OUTPUT[gxy] = MF4(pixR.x, pixG.x, pixB.x, 1);
#else
OUTPUT[gxy] = MF4(CasFilter(src, uint2(1, 1), peak), 1);

Expand Down
Loading

0 comments on commit 7ca07db

Please sign in to comment.