blob: ef7e82edd02b73cf0bfa938ac2a6c0eb6b4c1833 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
```bash
swift build -c release
./.build/release/pixel-sort input.png output2.png --lower 0.2 --upper 0.8 --key brightness
```
Performance target: 2ms max for 1080p
Shader optimization bottlenecks:
- VRAM
- Shader code itself
- Texture sampling (memory bandwidth): precalculate sorting value (SortKey)
-
|