summaryrefslogtreecommitdiffstats
path: root/tests/spirv/pointer-default-constructor.slang
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2025-05-22 21:29:06 -0500
committerGitHub <noreply@github.com>2025-05-22 19:29:06 -0700
commit3072cfea95aad2a9ddab0f517c8f18f634442a27 (patch)
tree966c019c35604b0f457caec02c9619feddbf2665 /tests/spirv/pointer-default-constructor.slang
parent2d34409f2e72673ac9fd766eaeaa75f60882e7ca (diff)
Implement default initializer list for C-Style type member (#7079)
* 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.
Diffstat (limited to 'tests/spirv/pointer-default-constructor.slang')
0 files changed, 0 insertions, 0 deletions