mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 11:11:47 +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": {
|
"unix": {
|
||||||
"file_extension": "tar.gz",
|
"file_extension": "tar.gz",
|
||||||
"hash": "sha256:4c0518d8faccbd46a482bef4e6fb4494ff32b757b18f8702d874f8e30da8b7f8",
|
"hash": "sha256:1ed5ebf7886849ea621d6dabee20248e8551c80134aa8c4433746879cb20dea3",
|
||||||
"urls": ["git-submodules://github.com/shader-slang/slang.git"]
|
"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 = {}
|
current_uniform_struct_members = {}
|
||||||
else:
|
else:
|
||||||
line = '// ' + line
|
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'):
|
elif words[0] == 'uniform' and len(words) > 2 and words[1].startswith('sampler'):
|
||||||
add_uniform_name(words[2])
|
add_uniform_name(words[2])
|
||||||
lines.append(line)
|
lines.append(line)
|
||||||
|
|||||||
Reference in New Issue
Block a user