From ecb26e4c0b0e33c82edbdabc2b71c716b5c92bd3 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Thu, 19 Mar 2026 10:24:38 -0400 Subject: interactive in this repo --- interactive/glsl-layout-calculator/index.html | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 interactive/glsl-layout-calculator/index.html (limited to 'interactive/glsl-layout-calculator/index.html') diff --git a/interactive/glsl-layout-calculator/index.html b/interactive/glsl-layout-calculator/index.html new file mode 100644 index 0000000..22b3078 --- /dev/null +++ b/interactive/glsl-layout-calculator/index.html @@ -0,0 +1,40 @@ + + + + + + + + GLSL Layout Calculator + + + + +

GLSL Std140 and Std430 Layout Calculator

+ by Jack Jamison +
+
+
+ + +
+
+
+ +

Instructions

+

Write your declarations on the left, get your output on the right. For the most part, you can paste in GLSL code.

+ You can define structs and uniform blocks with the syntax "#uniform name" or "#struct name".

+ +

About

+

This tool was made because tons of resources online about GLSL alignment are wrong, such as this one.

+ For detailed rules, read the OpenGL spec, pages 146-147
+ Source code
+ + + + + + -- cgit v1.2.3