diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-07-29 12:58:32 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-07-29 13:48:41 +0300 |
commit | aac6885950468bfe2ac9a906d028f0552bc451bc (patch) | |
tree | 637b58b3a34720aff83d1eed10e6dad404b2a038 /reference/opt/shaders/desktop-only | |
parent | 038b0bf23849a57a0d7d4e86ff5f17be1c5fe1f9 (diff) |
GLSL: Be more aggressive about using type_alias.
To facilitate an improved linking-by-name use case for older GL,
we will be more aggressive about merging struct definitions, even for
rather unrelated cases where we don't strictly need to use type aliases.
Diffstat (limited to 'reference/opt/shaders/desktop-only')
-rw-r--r-- | reference/opt/shaders/desktop-only/comp/enhanced-layouts.comp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/reference/opt/shaders/desktop-only/comp/enhanced-layouts.comp b/reference/opt/shaders/desktop-only/comp/enhanced-layouts.comp index 45b25064..ba37ca23 100644 --- a/reference/opt/shaders/desktop-only/comp/enhanced-layouts.comp +++ b/reference/opt/shaders/desktop-only/comp/enhanced-layouts.comp @@ -8,13 +8,6 @@ struct Foo int c; }; -struct Foo_1 -{ - int a; - int b; - int c; -}; - layout(binding = 1, std140) buffer SSBO1 { layout(offset = 4) int a; @@ -27,7 +20,7 @@ layout(binding = 2, std430) buffer SSBO2 { layout(offset = 4) int a; layout(offset = 8) int b; - layout(offset = 16) Foo_1 foo; + layout(offset = 16) Foo foo; layout(offset = 48) int c[8]; } ssbo2; |