Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. ### C++ struct definition of what is being sent to be written to
  2.  
  3. struct Vertex {
  4.     float position[3];
  5.     float normal[3];
  6. }
  7.  
  8. std::vector<Vertex> verticiesOut;
  9. verticiesOut.size(N * N * N);
  10.  
  11. // sending verticiesOut.data()
  12.  
  13. ### compute shader attempt / guess?
  14.  
  15. #version 450 core
  16.  
  17. layout(local_size_x = 8, local_size_y = 8, local_size_z = 8) in;
  18. layout (std430, binding = 0) buffer _VertexBuffer
  19. {
  20.     vec3 position[];
  21.     vec3 normal[];
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement