Skip to content

Commit

Permalink
Redirect some proposal references
Browse files Browse the repository at this point in the history
  • Loading branch information
aleino-nv committed Feb 10, 2025
1 parent dec484e commit 7a74b24
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source/slang/slang-check-decl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12322,15 +12322,16 @@ static Expr* _getParamDefaultValue(SemanticsVisitor* visitor, VarDeclBase* varDe
bool SemanticsDeclAttributesVisitor::_synthesizeCtorSignature(StructDecl* structDecl)
{
// If a type or its base type already defines any explicit constructors, do not synthesize any
// constructors. see:
// https://github.com/shader-slang/slang/blob/master/docs/proposals/004-initialization.md#inheritance-initialization
// constructors.
// See
// https://github.com/shader-slang/spec/blob/main/proposals/004-initialization.md#inheritance-initialization
if (_hasExplicitConstructor(structDecl, true))
return false;

// synthesize the signature first.
// The constructor's visibility level is the same as the struct itself.
// See:
// https://github.com/shader-slang/slang/blob/master/docs/proposals/004-initialization.md#synthesis-of-constructors-for-member-initialization
// See
// https://github.com/shader-slang/spec/blob/main/proposals/004-initialization.md#synthesis-of-constructors-for-member-initialization
DeclVisibility ctorVisibility = getDeclVisibility(structDecl);

// Only the members whose visibility level is higher or equal than the
Expand Down

0 comments on commit 7a74b24

Please sign in to comment.