Update README with shader optimization details

Added information about using textureQueryLod() and textureSize() for shader simplification.
This commit is contained in:
Rich Geldreich
2026-02-26 12:34:45 -05:00
committed by GitHub
parent b2a5596dee
commit 3503e0b9e6

View File

@@ -46,7 +46,7 @@ The shader can be easily simplified to sample the texture less by using less tap
Many variations and optimizations of this basic idea are possible. *Now shader engineers can directly impact memory consumption.* The better your deblocking shaders are tuned or your specific content, the bigger the ASTC block size you can ship. ASTC texture deblocking pixel shader engineering is now a memory optimization skill.
A simpler, [faster 5 tap filter variant is here](https://pastebin.com/jsF6nUZg). In practice, this usually looks just as good on most textures/images.
A simpler, [faster 5 tap filter variant is here](https://pastebin.com/jsF6nUZg). In practice, this usually looks just as good on most textures/images. ` textureQueryLod()` and `textureSize()` could also be used (with some API's) to simplify the shader further.
---