From 695c2700de54a5fec72ce7214c137a1dc3a02d7b Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Wed, 9 Aug 2017 10:13:40 -0700 Subject: Major naming overhaul: - `ExpressionSyntaxNode` becomes `Expr` - `StatementSyntaxNode` becomes `Stmt` - `StructSyntaxNode` becomes `StructDecl` - `ProgramSyntaxNode` becomes `ModuleDecl` - `ExpressionType` becomes `Type` - Existing fields names `Type` become `type` - There might be some collateral damage here if there were, e.g., `enum`s named `Type`, but I can live with that for now and fix those up as a I see them --- source/slang/type-layout.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'source/slang/type-layout.cpp') diff --git a/source/slang/type-layout.cpp b/source/slang/type-layout.cpp index 245993881..544071b84 100644 --- a/source/slang/type-layout.cpp +++ b/source/slang/type-layout.cpp @@ -624,7 +624,7 @@ bool IsResourceKind(LayoutResourceKind kind) SimpleLayoutInfo GetSimpleLayoutImpl( SimpleLayoutInfo info, - RefPtr type, + RefPtr type, LayoutRulesImpl* rules, RefPtr* outTypeLayout) { @@ -740,7 +740,7 @@ RefPtr createParameterBlockTypeLayout( RefPtr parameterBlockType, LayoutRulesImpl* parameterBlockRules, - RefPtr elementType, + RefPtr elementType, LayoutRulesImpl* elementTypeRules) { // First compute resource usage of the block itself. @@ -832,7 +832,7 @@ createParameterBlockTypeLayout( RefPtr createStructuredBufferTypeLayout( ShaderParameterKind kind, - RefPtr structuredBufferType, + RefPtr structuredBufferType, RefPtr elementTypeLayout, LayoutRulesImpl* rules) { @@ -865,8 +865,8 @@ createStructuredBufferTypeLayout( RefPtr createStructuredBufferTypeLayout( ShaderParameterKind kind, - RefPtr structuredBufferType, - RefPtr elementType, + RefPtr structuredBufferType, + RefPtr elementType, LayoutRulesImpl* rules) { // TODO(tfoley): need to compute the layout for the constant @@ -888,13 +888,13 @@ createStructuredBufferTypeLayout( } SimpleLayoutInfo GetLayoutImpl( - ExpressionType* type, + Type* type, LayoutRulesImpl* rules, RefPtr* outTypeLayout, SimpleLayoutInfo offset); SimpleLayoutInfo GetLayoutImpl( - ExpressionType* type, + Type* type, LayoutRulesImpl* rules, RefPtr* outTypeLayout) { @@ -902,7 +902,7 @@ SimpleLayoutInfo GetLayoutImpl( } SimpleLayoutInfo GetLayoutImpl( - ExpressionType* type, + Type* type, LayoutRulesImpl* rules, RefPtr* outTypeLayout, SimpleLayoutInfo offset) @@ -1154,7 +1154,7 @@ SimpleLayoutInfo GetLayoutImpl( { auto declRef = declRefType->declRef; - if (auto structDeclRef = declRef.As()) + if (auto structDeclRef = declRef.As()) { RefPtr typeLayout; if (outTypeLayout) @@ -1270,24 +1270,24 @@ SimpleLayoutInfo GetLayoutImpl( outTypeLayout); } -SimpleLayoutInfo GetLayout(ExpressionType* inType, LayoutRulesImpl* rules) +SimpleLayoutInfo GetLayout(Type* inType, LayoutRulesImpl* rules) { return GetLayoutImpl(inType, rules, nullptr); } -RefPtr CreateTypeLayout(ExpressionType* type, LayoutRulesImpl* rules, SimpleLayoutInfo offset) +RefPtr CreateTypeLayout(Type* type, LayoutRulesImpl* rules, SimpleLayoutInfo offset) { RefPtr typeLayout; GetLayoutImpl(type, rules, &typeLayout, offset); return typeLayout; } -RefPtr CreateTypeLayout(ExpressionType* type, LayoutRulesImpl* rules) +RefPtr CreateTypeLayout(Type* type, LayoutRulesImpl* rules) { return CreateTypeLayout(type, rules, SimpleLayoutInfo()); } -SimpleLayoutInfo GetLayout(ExpressionType* type, LayoutRule rule) +SimpleLayoutInfo GetLayout(Type* type, LayoutRule rule) { LayoutRulesImpl* rulesImpl = GetLayoutRulesImpl(rule); return GetLayout(type, rulesImpl); -- cgit v1.2.3