<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/language-feature/shared-memory-initializer-error.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>2024-08-14T17:05:57+00:00</updated>
<entry>
<title>Do not zero-initialize groupshared and rayquery variables (#4838)</title>
<updated>2024-08-14T17:05:57+00:00</updated>
<author>
<name>ArielG-NV</name>
<email>159081215+ArielG-NV@users.noreply.github.com</email>
</author>
<published>2024-08-14T17:05:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=45b76418f9da2248b069f2058c6a1d52b05a8c74'/>
<id>urn:sha1:45b76418f9da2248b069f2058c6a1d52b05a8c74</id>
<content type='text'>
* Do not zero-initialize groupshared and rayquery variables

Fixes: #4824

`-zero-initialize` option will explicitly not:
1. Set any groupshared values to defaults
2. Set any rayQuery object to a default state (currently invalid code generation)

* grammer

* disallow groupshared initializers

disallow groupshared initializers &amp; adjust tests accordingly

* remove disallowed groupshared-init expression

* do not default init if non-copyable

---------

Co-authored-by: Yong He &lt;yonghe@outlook.com&gt;</content>
</entry>
</feed>
