The std140 Layout Rules

The set of rules shown in Table I.1 are used by the GLSL compiler to place members in an std140-qualified uniform block. This feature is available only with GLSL Version 1.40 or greater.

Table I.1. std140 Layout Rules


Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.