mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-04 05:32:40 +02:00
Bump slang version, allows removing one glsl workaround
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user