Notes:
Originally contributed on the newsgroups by Victor Suba, this code provides
a software simulation of the GS internal memory. Functions are provided to
write to the GS in one texture format, and the read back from the GS in
another texture format. This can be used to calculate swizzled textures for
faster upload to the GS. For example to pre-swizzle a 4bit texture to 32bit
you would write as 4bit and then read back as 32bit for the swizzled version.
Changes:
|