<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/language-feature/enums/enum-switch-2.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-10-08T23:13:27+00:00</updated>
<entry>
<title>Allow 1D SV_DispatchThreadID in CPU targets (#8612)</title>
<updated>2025-10-08T23:13:27+00:00</updated>
<author>
<name>Julius Ikkala</name>
<email>julius.ikkala@gmail.com</email>
</author>
<published>2025-10-08T23:13:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=1e4265edd4ec4c44e3d8f209fca802727076aa46'/>
<id>urn:sha1:1e4265edd4ec4c44e3d8f209fca802727076aa46</id>
<content type='text'>
The varying param legalization pass didn't deal with this 1D form of
SV_DispatchThreadID for CPU targets:

```slang
void computeMain(int i : SV_DispatchThreadID)
```

Instead, it just overrode the type of `i` with a `uint3`, breaking lots
of code that attempted to use `i` for something, like a `switch`
statement for example.

I ran across this when going through `language-feature` tests for the
LLVM target, which will also use this legalization pass. I'm separately
submitting this now because this also fixes the existing CPU target. The
test I enable in this PR is one that was previously generating broken
code on CPU.

(somewhat related issue: #7468)</content>
</entry>
<entry>
<title>Properly check switch case. (#5341)</title>
<updated>2024-10-20T16:28:13+00:00</updated>
<author>
<name>Yong He</name>
<email>yonghe@outlook.com</email>
</author>
<published>2024-10-20T16:28:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=307315a7305e76529837fd1cdb677f534d5f539b'/>
<id>urn:sha1:307315a7305e76529837fd1cdb677f534d5f539b</id>
<content type='text'>
</content>
</entry>
</feed>
