mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
perf: 优化 Deband 在启用内联效果参数时的性能
This commit is contained in:
parent
bcd5b6fed6
commit
c10034af50
1 changed files with 3 additions and 0 deletions
|
|
@ -106,6 +106,9 @@ float4 Pass1(float2 pos)
|
|||
// Sample the source pixel
|
||||
float3 col = INPUT.SampleLevel(sam1, pos, 0).rgb;
|
||||
|
||||
#ifdef MP_INLINE_PARAMS
|
||||
[unroll]
|
||||
#endif
|
||||
for (int i = 1; i <= iterations; i++) {
|
||||
// Use the average instead if the difference is below the threshold
|
||||
float3 avg = average(pos, i*range, h);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue