rewolfer
10-13-2010, 05:13 AM
Is there anywhere to find more detail on how shaders are compiled? I'd like to be able to tell how many instructions each statement will compile as. I know that the CUDA docs detail the performance and instruction count of some of their functions but I cannot seem to find anything with regard to shaders. I'm looking at NVIDIA chips primarily. I currently only have the gist of what to avoid like sqrt's and normalize and to exploit MAD instructions, but I'd like to be able to quantify their performance.
Also, is their any documentation as to how memory should be aligned, what vertex sizes are best or which memory uniforms/locals/constants are stored in? I know from CUDA that branching should not be divergent within a thread-warp and read recently that this is similar in GLSL - spatially local fragments should follow the same path. Where do people get this information?
Thanks very much for any info in advance :)
Also, is their any documentation as to how memory should be aligned, what vertex sizes are best or which memory uniforms/locals/constants are stored in? I know from CUDA that branching should not be divergent within a thread-warp and read recently that this is similar in GLSL - spatially local fragments should follow the same path. Where do people get this information?
Thanks very much for any info in advance :)