The chapter11/scenecloth.cpp file in the example code The Implementing an edge detection filter with the compute shader recipe