Guest User

Untitled

a guest
Oct 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. layout (std430, binding = 0) buffer indices {
  2. int j[];
  3. };
  4.  
  5. RWBuffer indices
  6. {
  7. int j[];
  8. }
  9.  
  10. RWBuffer<{int j[];}> indices;
  11.  
  12. struct index
  13. {
  14. //requires explicit length, which is why this doesn't work
  15. int j[];
  16. }
  17. RWStructuredBuffer<index> indices;
  18.  
  19. //id is SV_DispatchThreadID
  20. indices.j[int(id.y)]
Add Comment
Please, Sign In to add comment