<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/initializer-list/generic-array-init.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-05-23T02:29:06+00:00</updated>
<entry>
<title>Implement default initializer list for C-Style type member (#7079)</title>
<updated>2025-05-23T02:29:06+00:00</updated>
<author>
<name>kaizhangNV</name>
<email>149626564+kaizhangNV@users.noreply.github.com</email>
</author>
<published>2025-05-23T02:29:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=3072cfea95aad2a9ddab0f517c8f18f634442a27'/>
<id>urn:sha1:3072cfea95aad2a9ddab0f517c8f18f634442a27</id>
<content type='text'>
* Implement default initializer list for C-Style type member

Close #6189.

Previsouly, for the C-Style member in a struct, if it doesn't have any initialize
expression, when we synthesize the ctor, we will not associate the
default value for the parameter corresponding to that member.

This bring some trouble that existing slang users has to add '= {}' to
every struct fields in order to make all the parameters in the synthesized ctor having
a default value, so people can still use `Struct a = {}` to create a
struct.

To make this use case convenience, we will automatically associated a
'= {}' as the default value for this case.

This PR also add support for empty initializing link-time sized vector/matrix by "= {}".
In addition, this PR also fix a bug in auto diff where we should not report error when proccessing
transpose on an empty struct.

</content>
</entry>
<entry>
<title>Support Array Sizes using Generic arguments to be initialized via {} (#6720)</title>
<updated>2025-05-13T05:39:23+00:00</updated>
<author>
<name>Sruthik P</name>
<email>spatibandlla@nvidia.com</email>
</author>
<published>2025-05-13T05:39:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=6c262bc5c9a364cd8c6a4026dbb9f8034c500f11'/>
<id>urn:sha1:6c262bc5c9a364cd8c6a4026dbb9f8034c500f11</id>
<content type='text'>
* Add support for Array Sizes using Generic arguments to be initialized via {}

Fixes one subissue of #6138

This change adds support for initializing Arrays with Generic size arguments via {}
and adds a test to verify it.

The change checks for an array whose size parameter is a GenericParamIntVal
and since the size of such an array will be known at link time, is not considered
as a case of the size not being known statically.

* Add support for Array Sizes using Generic arguments to be initialized via {}

Fixes one subissue of #6138.
Fixes the issue #6958.

This change adds support for initializing Arrays with Generic size arguments via {}
and adds a test to verify it.

Support is added by means of adding a new AST Expr node that lowers down to the IR MakeArrayFromElement
and the emission of a diagnostic is replaced with the creation of this new AST Expr node.

* format code

---------

Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;
Co-authored-by: Ellie Hermaszewska &lt;ellieh@nvidia.com&gt;</content>
</entry>
</feed>
