3 ms·
OpenGL direct state access (DSA) is actually part of OpenGL 4.5! You still need to set up a lot of state for draw calls, but changing little pieces of state has
by ahartmetz 4y ago
OpenGL direct state access (DSA) is actually part of OpenGL 4.5! You still need to set up a lot of state for draw calls, but changing little pieces of state has changed from (pseudocode, and I'm showing a worst case for pre-DSA here):
const int oldTexture = currentTexture();
switchToTexture(myTexture)
setTextureData(myRgbImage);
switchToTexture(oldTexture);
to:
setTextureDataDSA(myTexture, myRgbImage);