SHARE
TWEET
Untitled
a guest
Apr 15th, 2019
143
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- writeln("STOR ", i, " ", buffers_[i], " ", targetSize);
- glState.bindBuffer(GL_ARRAY_BUFFER, buffers_[i]);
- glBufferStorage(GL_ARRAY_BUFFER, targetSize, null, GL_DYNAMIC_STORAGE_BIT);
- GLint bufSize = -1;
- glGetBufferParameteriv(GL_ARRAY_BUFFER, GL_BUFFER_SIZE, &bufSize);
- import std.stdio;
- writeln("VER ", i, " ", buffers_[i], " ", bufSize);
- STOR 0 1 786432
- VER 0 1 786432
- STOR 1 2 131072
- VER 1 2 131072
- STOR 2 3 65536
- VER 2 3 65536
- //---------------------------------------
- writeln("STOR ", i, " ", buffers_[i], " ", targetSize);
- glNamedBufferStorage(buffers_[i], targetSize, null, GL_DYNAMIC_STORAGE_BIT);
- glState.bindBuffer(GL_ARRAY_BUFFER, buffers_[i]);
- //glBufferStorage(GL_ARRAY_BUFFER, targetSize, null, GL_DYNAMIC_STORAGE_BIT);
- GLint bufSize = -1;
- glGetBufferParameteriv(GL_ARRAY_BUFFER, GL_BUFFER_SIZE, &bufSize);
- import std.stdio;
- writeln("VER ", i, " ", buffers_[i], " ", bufSize);
- STOR 0 1 786432
- VER 0 1 0
- STOR 1 2 131072
- VER 1 2 0
- STOR 2 3 65536
- 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.
