diff --git a/bypy/sources.json b/bypy/sources.json index 475b48b7c..02fdf31ca 100644 --- a/bypy/sources.json +++ b/bypy/sources.json @@ -280,10 +280,10 @@ }, { - "name": "slang 2026.11", + "name": "slang 2026.12.2", "unix": { "file_extension": "tar.gz", - "hash": "sha256:4c0518d8faccbd46a482bef4e6fb4494ff32b757b18f8702d874f8e30da8b7f8", + "hash": "sha256:1ed5ebf7886849ea621d6dabee20248e8551c80134aa8c4433746879cb20dea3", "urls": ["git-submodules://github.com/shader-slang/slang.git"] } }, diff --git a/kitty/shaders/slang.py b/kitty/shaders/slang.py index e813cb828..2cf18628d 100644 --- a/kitty/shaders/slang.py +++ b/kitty/shaders/slang.py @@ -396,12 +396,6 @@ def fixup_opengl_code(glsl_code: str) -> tuple[str, dict[str, Any]]: current_uniform_struct_members = {} else: line = '// ' + line - elif '] = {' in line: # }] this is https://github.com/shader-slang/slang/issues/11802 - typename = words[0] - if words[0] == 'const': - typename = words[1] - line = line.replace('{', f'{typename}[](', 1) # }]) - line = line.removesuffix('};') + ');' elif words[0] == 'uniform' and len(words) > 2 and words[1].startswith('sampler'): add_uniform_name(words[2]) lines.append(line)