Guest User

Untitled

a guest
Jul 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. typedef struct
  2. {
  3. int a;
  4. int b;
  5. float c;
  6. /// blah blah
  7.  
  8. } SomeParams;
  9.  
  10. __constant SomeParams Parameters;
  11.  
  12. __kernel void Foo()
  13. {
  14. int a = Parameters.a;
  15. /// do something useful...
  16. }
  17.  
  18. __constant float pi = 3.14f;
  19.  
  20. __kernel void Foo(__constant SomeParams Parameters)
  21. {
  22. int a = Parameters.a;
  23. /// do something useful...
  24. }
Add Comment
Please, Sign In to add comment