diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-05-22 14:21:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-22 11:21:37 -0700 |
| commit | 076a4c06767cca12c5205d950e9cd37451f91488 (patch) | |
| tree | dc3bcc376e18e5233f61b2cedfa3419717798a01 /source/slang/slang-type-layout.cpp | |
| parent | daf53bb2708982a2bcc6d6cc08fe88790ccf0bc2 (diff) | |
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
Diffstat (limited to 'source/slang/slang-type-layout.cpp')
| -rw-r--r-- | source/slang/slang-type-layout.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<RowMajorLayoutModifier>()) + if (declForModifiers->hasModifier<RowMajorLayoutModifier>()) subContext.matrixLayoutMode = kMatrixLayoutMode_RowMajor; - if (declForModifiers->HasModifier<ColumnMajorLayoutModifier>()) + if (declForModifiers->hasModifier<ColumnMajorLayoutModifier>()) 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 |
