Skip to content

Instantly share code, notes, and snippets.

@yorung
Last active August 29, 2015 14:18
Show Gist options
  • Save yorung/e50c58b45961859c2fde to your computer and use it in GitHub Desktop.
Save yorung/e50c58b45961859c2fde to your computer and use it in GitHub Desktop.
[OpenGL and DirectX11] UBO and Constant Buffer
// DirectX11
#define POS 2
pDeviceContext->VSSetConstantBuffers(POS, 1, &buffer);
// OpenGL
#define POS 2
glBindBufferBase(GL_UNIFORM_BUFFER, POS, ubo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment