Bump slang version, allows removing one glsl workaround

This commit is contained in:
Kovid Goyal 2026-07-01 22:59:59 +05:30
parent 4e3e6ce40b
commit 832c4c2d58
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 8 deletions

View file

@ -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"]
}
},

View file

@ -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)