Last active
          August 29, 2015 14:18 
        
      - 
      
- 
        Save yorung/a632d62e19074ad73e1f to your computer and use it in GitHub Desktop. 
    [GLSL and HLSL] Uniform Buffer 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
    
  
  
    
  | // HLSL (DirectX11) | |
| cbuffer MyContantBuffer : register(b2) | |
| { | |
| float4x4 matW; | |
| } | 
  
    
      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
    
  
  
    
  | // GLSL | |
| layout (std140, binding = 2) uniform MyUBO { | |
| mat4 matW; | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment