Last active
          August 29, 2015 14:18 
        
      - 
      
- 
        Save yorung/e50c58b45961859c2fde to your computer and use it in GitHub Desktop. 
    [OpenGL and DirectX11] UBO and Constant Buffer
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // DirectX11 | |
| #define POS 2 | |
| pDeviceContext->VSSetConstantBuffers(POS, 1, &buffer); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // 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