]> git.tdb.fi Git - libs/gl.git/commit
Add storage block support to the shader compiler
authorMikko Rasa <tdb@tdb.fi>
Sun, 16 Jul 2023 20:02:29 +0000 (23:02 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 16 Jul 2023 23:15:44 +0000 (02:15 +0300)
commit53e81067b92351621c0ba972e4a710986212ff9d
treef5410e3cea2d0ddcd3007edc5151061e4d7974dd
parentfffd8e2f86f624b9aa9c756697146284e8b48dcc
Add storage block support to the shader compiler

At the moment extended alignment (std140 layout) is used for storage
blocks.  Supporting base alignment (std430) has some complications
because structs may need to be duplicated as base and extended versions.
source/glsl/features.cpp
source/glsl/features.h
source/glsl/finalize.cpp
source/glsl/output.cpp
source/glsl/parser.cpp
source/glsl/spirv.cpp
source/glsl/spirvconstants.h
source/glsl/validate.cpp
tests/glsl/bad_runtime_sized_array.glsl [new file with mode: 0644]
tests/glsl/runtime_sized_array_in_storage_block.glsl [new file with mode: 0644]