radeon 8500 demos: rename sushi.ati to sushi.zip --> shaders source code and more !

flexy

New member
radeon 8500 demos: rename sushi.ati to sushi.zip --> shaders source code and more !

hi,

if you rename the big sushi.ati files (which come with the ati 8500 demos, nature, rachel, dolphins etc..) to sushi.zip..then you magically get zipfiles which contain a lot of stuff. (You can extract them inthe same directory as where the demos reside)

This zip-files include the source code of the shaders....very interesting. Some parts look like assembler.

Look into that, play with the values and see how the radeon 8500 is programmed :)
 
I used ZLib http://www.gzip.org/zlib/ in the Sushi engine to load our data files directly from a zip file. This is nice so we don't need to use as much disk space and speeds up the installation process...most installers go very slow when trying to install a lot of small files. It's really easy to wrap the fopen(), fclose() and fread() functions to pull from the zip file.

Alex V, ATI
 
Alex [ATI] said:
I used ZLib http://www.gzip.org/zlib/ in the Sushi engine to load our data files directly from a zip file. This is nice so we don't need to use as much disk space and speeds up the installation process...most installers go very slow when trying to install a lot of small files. It's really easy to wrap the fopen(), fclose() and fread() functions to pull from the zip file.

Alex V, ATI


so...how does that work ? You program the shaders in the source code - but how does it work ? Are they being compiled to gfx card machine code and 'loaded' into the card somehow before the execution of the programs (excuse my ignorance)...or is the code kind of interpreted at run time (which is unlikely actually...but who knows....)

greetings
 
flexy said:
so...how does that work ? You program the shaders in the source code - but how does it work ? Are they being compiled to gfx card machine code and 'loaded' into the card somehow before the execution of the programs (excuse my ignorance)...or is the code kind of interpreted at run time (which is unlikely actually...but who knows....)
Shaders are not hard-coded in source code. They are read in from a text file at runtime and parsed. Those are the .ssh files in the shaders directory. This makes development much faster since you don't need to recompile the exe every time you want to modify a shader.

Alex V, ATI
 
Back
Top