摘要:
Ring buffers and queuesThe data structure is extremely simple: a bounded FIFO. One step up from plain arrays, but still, it’s very basic stuff. And if you’re doing system programming, particularly anything involving IO or directly talking to hardware (boils down to the same thing really), it’s absol 阅读全文
摘要:
Texture tiling and swizzling原帖地址:http://fgiesen.wordpress.comIf you’re working with images in your program, you’re most likely using a regular 2D array layout to store image data. Which is to say, it’s basically a 1D array of width * height pixels, and the index of every pixel in the array is normal 阅读全文