From 076a4c06767cca12c5205d950e9cd37451f91488 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 22 May 2020 14:21:37 -0400 Subject: Tidy up around AST nodes (#1353) * Fields from upper to lower case in slang-ast-decl.h * Lower camel field names in slang-ast-stmt.h * Fix fields in slang-ast-expr.h * slang-ast-type.h make fields lowerCamel. * slang-ast-base.h members functions lowerCamel. * Method names in slang-ast-type.h to lowerCamel. * GetCanonicalType -> getCanonicalType * Substitute -> substitute * Equals -> equals ToString -> toString * ParentDecl -> parentDecl Members -> members --- source/slang/slang-type-layout.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/slang/slang-type-layout.cpp') diff --git a/source/slang/slang-type-layout.cpp b/source/slang/slang-type-layout.cpp index bc6ed13a2..29d6c66d4 100644 --- a/source/slang/slang-type-layout.cpp +++ b/source/slang/slang-type-layout.cpp @@ -2488,10 +2488,10 @@ static TypeLayoutResult _createTypeLayout( // are only applied to leaf fields/variables of matrix type // the difference should be immaterial. - if (declForModifiers->HasModifier()) + if (declForModifiers->hasModifier()) subContext.matrixLayoutMode = kMatrixLayoutMode_RowMajor; - if (declForModifiers->HasModifier()) + if (declForModifiers->hasModifier()) subContext.matrixLayoutMode = kMatrixLayoutMode_ColumnMajor; // TODO: really need to look for other modifiers that affect @@ -3294,7 +3294,7 @@ static TypeLayoutResult _createTypeLayout( // The layout rules for these vary heavily by resource kind and API. // - auto elementCount = GetElementCount(arrayType->ArrayLength); + auto elementCount = GetElementCount(arrayType->arrayLength); // // We can compute the uniform storage layout of an array using -- cgit v1.2.3