< Previous | Contents | Next >

Summary

This sets the x and y variables to the integer coordinates of the pixel currently being processed, and will typically vary between (0,0) and the (width,height) of the output texture being written to. Note that the GPU kernel may sometimes round the maximum values up for performance reasons, so you should be careful not to attempt writing to (x,y) coordinates greater than (width-1,height-1) of your output texture.