I have a new demo showing how to do texture compression entirely on the GPU in Direct3D 10.1. I'm compressing a luminance texture to the BC4 format. The shader is merely 49 hardware ALU instructions on an HD 3870, which for 16 pixels in a block is ~3 instructions per pixel. Since it's just a single channel texture I've also optimized the compression by sampling with Gather (AKA Fetch4) to reduce the texture fetches from 16 down to 4.
Not so much eye-candy in this demo as it just shows you a static texture (which obviously is just a photo), but here's the usual screenshot:
You can toggle between the compressed and uncompressed with F5.
Download here
Not so much eye-candy in this demo as it just shows you a static texture (which obviously is just a photo), but here's the usual screenshot:
You can toggle between the compressed and uncompressed with F5.
Download here
Last edited by a moderator: