<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/bugs/gh-3834.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-04-25T16:02:13+00:00</updated>
<entry>
<title>Keep const-ness in generic functions (#4028)</title>
<updated>2024-04-25T16:02:13+00:00</updated>
<author>
<name>Jay Kwak</name>
<email>82421531+jkwak-work@users.noreply.github.com</email>
</author>
<published>2024-04-25T16:02:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=ed0681164d78591148781d08934676bfec63f9da'/>
<id>urn:sha1:ed0681164d78591148781d08934676bfec63f9da</id>
<content type='text'>
* Keep const-ness in generic functions

Closes #3834

The issue was that "const" variables inside of generic functions became
non-const variables.  This issue prevented some of GLSL texture
functions from being called inside of generic functions.

When `propagateConstExpr()` iterates the global functions, the generic
functions had to be handled little differently. This commit allows the
iteration to happen for the generic functions.

* Adding an explantion of the test as a comment</content>
</entry>
</feed>
