SHARE
TWEET

Untitled

a guest Apr 15th, 2019 143 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. writeln("STOR ", i, " ", buffers_[i], " ", targetSize);
  2.  
  3. glState.bindBuffer(GL_ARRAY_BUFFER, buffers_[i]);
  4. glBufferStorage(GL_ARRAY_BUFFER, targetSize, null, GL_DYNAMIC_STORAGE_BIT);
  5. GLint bufSize = -1;
  6. glGetBufferParameteriv(GL_ARRAY_BUFFER, GL_BUFFER_SIZE, &bufSize);
  7. import std.stdio;
  8.  
  9. writeln("VER ", i, " ", buffers_[i], " ", bufSize);
  10.  
  11. STOR 0 1 786432
  12. VER 0 1 786432
  13. STOR 1 2 131072
  14. VER 1 2 131072
  15. STOR 2 3 65536
  16. VER 2 3 65536
  17. //---------------------------------------
  18. writeln("STOR ", i, " ", buffers_[i], " ", targetSize);
  19. glNamedBufferStorage(buffers_[i], targetSize, null, GL_DYNAMIC_STORAGE_BIT);
  20.  
  21. glState.bindBuffer(GL_ARRAY_BUFFER, buffers_[i]);
  22. //glBufferStorage(GL_ARRAY_BUFFER, targetSize, null, GL_DYNAMIC_STORAGE_BIT);
  23. GLint bufSize = -1;
  24. glGetBufferParameteriv(GL_ARRAY_BUFFER, GL_BUFFER_SIZE, &bufSize);
  25. import std.stdio;
  26.  
  27. writeln("VER ", i, " ", buffers_[i], " ", bufSize);
  28.  
  29. STOR 0 1 786432
  30. VER 0 1 0
  31. STOR 1 2 131072
  32. VER 1 2 0
  33. STOR 2 3 65536
  34. VER 2 3 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top