]> git.tdb.fi Git - libs/gl.git/commit
Add default packing qualifiers to uniform and buffer blocks
authorMikko Rasa <tdb@tdb.fi>
Fri, 29 Dec 2023 07:55:18 +0000 (09:55 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 29 Dec 2023 07:55:18 +0000 (09:55 +0200)
commit3e10f4e990de940af2a72b3fdf7d210bdb113aae
tree15a4fe3899e6fe42ebe4370c55e298762be37944
parent8a33212d63c412c7645a980c996e0435560b831c
Add default packing qualifiers to uniform and buffer blocks

The GLSL spec says they use shared packing by default, and it turns out
that on AMD graphics processors this results in large alignment event
for primitive types.  This threw off applications using storage buffers
since their contents are not reflected.
source/glsl/generate.cpp
source/glsl/generate.h