What will happen when shaders meet textures?
3 replies to this topic
Moderators - Reputation: 13623
Posted 24 April 2012 - 12:57 PM
In general, the thread with the texture fetch will stall while it waits for the fetch to complete. However a GPU will keep many many threads in flight simultaneously, and will typically have another warp/wavefront of threads that it can swap out so that execution can continue. Read through this for more details.
Members - Reputation: 122
Posted 24 April 2012 - 09:58 PM
Let's put it another way. My card has 16 x 9 SIMD units and 4 x 9 texture mapping units (and I wonder if the 2 "x 9"s have same meaning). Can I say that one SIMD group have 4 texture mapping units? If so, when the group is executing one sampling instruction, how the texture mapping units are used? If not, how will they do the job?