Do GLSL uniform blocks consume components?


If I use uniform blocks in a GLSL shader - do they consume components (from GL_MAX_VERTEX_UNIFORM_COMPONENTS or GL_MAX_FRAGMENT_UNIFORM_COMPONENTS).


Yes. See <a href="http://www.opengl.org/registry/specs/ARB/uniform_buffer_object.txt" rel="nofollow">ARB_Uniform_Buffer_Object</a>:


The amount of storage available for uniform variables in the default uniform block accessed by a vertex shader is specified by the value of the implementation-dependent constant MAX_VERTEX_UNIFORM_COMPONENTS. The total amount of combined storage available for uniform variables in all uniform blocks accessed by a vertex shader (including the default uniform block) is specified by the value of the implementation-dependent constant MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS. These values represent the numbers of individual floating-point, integer, or boolean values that can be held in uniform variable storage for a vertex shader.



  • Eclipse CDT - Copy static resource file to bin_dir
  • RewriteCond and RewriteRule in .htaccess
  • Cycles in Gremlin/Cypher
  • Visual Studio extension: Change the hint path of an assembly reference
  • Boost Graph : Test if two vertices are adjacent
  • JUnit testing package private class in Maven formatted project
  • How to merge all results of AQL into single document with custom properties
  • Data Type of Columns in a List - R
  • How to get or calculate size of Azure File/Share or Service
  • Where to save the local DB created for iphone app?
  • get passwords from chrome
  • Paypal 'Buy Now' button not letting me dynamically set the price
  • OpenGL - Object Transformations and VBOs
  • It is possible use the same sql azure instance from two different cloud service of two different sub
  • Does the Azure table storage API cache results?
  • Insertion large number of Entities into SQL Server 2012 [duplicate]
  • How gzip file gets stored in HDFS
  • Responsive left sidebar open close
  • Prevent page break in text block with iText, XMLWorker
  • Time out Error in send mail
  • What's the syntax to inherit documentation from another indexer?
  • ApplePay PKPaymentAuthorizationViewController always shows processing
  • C++ friend class std::vector
  • abstracting over a collection
  • SyntaxError: (irb):26: both block arg and actual block given
  • Can't remove headers after they are sent
  • ThreadStatic in asynchronous ASP.NET Web API
  • How to detect interior vertices in groups of 2d polygons? (E.g. ZIP Codes to determine a territory)
  • C++ pointer value changes with static_cast
  • WPF ICommand CanExecute(): RaiseCanExecuteChanged() or automatic handling via DispatchTimer?
  • Paperclip, set path outside of rails root folder
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • Spray.io: When (not) to use non-blocking route handling?
  • angularjs unit test when to use $rootScope.$new()
  • Modifying destination and filename of gulp-svg-sprite
  • How to extract text from Word files using C#?
  • GridView Sorting works once only
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • Does armcc optimizes non-volatile variables with -O0?
  • Conditional In-Line CSS for IE and Others?