Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. kernel void image_filter(a, b, c, d)
  2. {
  3. func1(a, b, c, d);
  4. if(<condition>)
  5. func2(a, b, c, d);
  6. }
  7.  
  8. kernel void image_filter(a, b, c, d)
  9. {
  10. // Vertical pass
  11. func1(a, b, c, d);
  12. if(<condition>)
  13. func2(a, b, c, d);
  14.  
  15. // When execution of the above functions is complete
  16. // Horizontal pass
  17. // Some computation
  18. func1(a, b, c, d);
  19. if(<condition>)
  20. func2(a, b, c, d);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement