<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/spirv/debug-local-variable-scope.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-07-11T20:47:33+00:00</updated>
<entry>
<title>Add DebugGlobalVariable instructions to SPIR-V output (#7686)</title>
<updated>2025-07-11T20:47:33+00:00</updated>
<author>
<name>Jay Kwak</name>
<email>82421531+jkwak-work@users.noreply.github.com</email>
</author>
<published>2025-07-11T20:47:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=1dc32b8bf8dd14e607d306c160b1bedf46067910'/>
<id>urn:sha1:1dc32b8bf8dd14e607d306c160b1bedf46067910</id>
<content type='text'>
* Add DebugGlobalVariable instructions to SPIR-V output

Implements generation of DebugGlobalVariable instructions for global variables
like Texture2D and SamplerState in SPIR-V debug information output. Adds debug
type support for texture and sampler types using DebugTypeComposite.

* Handle two more types for DebugGlobalVariable

kIROp_RaytracingAccelerationStructureType and
kIROp_SamplerComparisonStateType had to be handled in
`emitDebugTypeImpl()`

* Fix format

* Refactor debug type emission to reduce duplication

Use IRSamplerStateTypeBase type check and fallback pattern instead of
separate cases for each opcode type.

* Fix compiler warning

* Simplify `emitDebugTypeImpl()` more</content>
</entry>
<entry>
<title>Correct the scope for DebugLocalVariable (#7516)</title>
<updated>2025-06-26T16:29:32+00:00</updated>
<author>
<name>Lujin Wang</name>
<email>143145775+lujinwangnv@users.noreply.github.com</email>
</author>
<published>2025-06-26T16:29:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=d166fe8333c7dfc61c32fda5017461858eb4c3fa'/>
<id>urn:sha1:d166fe8333c7dfc61c32fda5017461858eb4c3fa</id>
<content type='text'>
* Correct the scope for DebugLocalVariable

All of the DebugLocalVariable instructions have their scope
set to DebugCompilationUnit. The scope should instead be set
to a DebugFunction, or a DebugLexicalBlock which is recursively
inside a DebugFunction.

Register the debug info for the function instructions, which
helps findDebugScope() to find the right DebugFunction scope
for DebugLocalVariable.

* Add a test for DebugLocalVariable

To check the scope, which should be a DebugFunction.</content>
</entry>
</feed>
