cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

ryta1203
Journeyman III

Branching in OpenCL

Does branching in compute shader mode (OpenCL) work the same way as it does in pixel shader mode (Brook+)?

0 Likes
4 Replies

ryta,
The hardware is fundamentally the same with branching in all shader modes.
0 Likes

Thanks Micah.

0 Likes

Micah,

 One last question please:

Is it more expensive to take the branch or not (just based on the branch instruction itself, not including what's in the branch) or is it the same?

0 Likes

The cost of executing all ALU CF instructions is the same.
0 Likes