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.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'source/slang/type-layout.h') diff --git a/source/slang/type-layout.h b/source/slang/type-layout.h index 7be1c595f..7d037b2e7 100644 --- a/source/slang/type-layout.h +++ b/source/slang/type-layout.h @@ -16,7 +16,7 @@ typedef uintptr_t UInt; // Forward declarations enum class BaseType; -class ExpressionType; +class Type; // @@ -154,8 +154,8 @@ class TypeLayout : public Layout { public: // The type that was laid out - RefPtr type; - ExpressionType* getType() { return type.Ptr(); } + RefPtr type; + Type* getType() { return type.Ptr(); } // The layout rules that were used to produce this type LayoutRulesImpl* rules; @@ -287,14 +287,14 @@ public: } }; -// Type layout for a variable that has a constant-buffer type +// type layout for a variable that has a constant-buffer type class ParameterBlockTypeLayout : public TypeLayout { public: RefPtr elementTypeLayout; }; -// Type layout for a variable that has a constant-buffer type +// type layout for a variable that has a constant-buffer type class StructuredBufferTypeLayout : public TypeLayout { public: @@ -345,7 +345,7 @@ class EntryPointLayout : public StructTypeLayout { public: // The corresponding function declaration - RefPtr entryPoint; + RefPtr entryPoint; // The shader profile that was used to compile the entry point Profile profile; @@ -532,12 +532,12 @@ LayoutRulesImpl* GetLayoutRulesImpl(LayoutRule rule); LayoutRulesFamilyImpl* GetLayoutRulesFamilyImpl(LayoutRulesFamily rule); LayoutRulesFamilyImpl* GetLayoutRulesFamilyImpl(CodeGenTarget target); -SimpleLayoutInfo GetLayout(ExpressionType* type, LayoutRulesImpl* rules); +SimpleLayoutInfo GetLayout(Type* type, LayoutRulesImpl* rules); -SimpleLayoutInfo GetLayout(ExpressionType* type, LayoutRule rule = LayoutRule::Std430); +SimpleLayoutInfo GetLayout(Type* type, LayoutRule rule = LayoutRule::Std430); -RefPtr CreateTypeLayout(ExpressionType* type, LayoutRulesImpl* rules); -RefPtr CreateTypeLayout(ExpressionType* type, LayoutRulesImpl* rules, SimpleLayoutInfo offset); +RefPtr CreateTypeLayout(Type* type, LayoutRulesImpl* rules); +RefPtr CreateTypeLayout(Type* type, LayoutRulesImpl* rules, SimpleLayoutInfo offset); // @@ -551,7 +551,7 @@ RefPtr createParameterBlockTypeLayout( RefPtr parameterBlockType, LayoutRulesImpl* parameterBlockRules, - RefPtr elementType, + RefPtr elementType, LayoutRulesImpl* elementTypeRules); RefPtr @@ -565,8 +565,8 @@ createParameterBlockTypeLayout( RefPtr createStructuredBufferTypeLayout( ShaderParameterKind kind, - RefPtr structuredBufferType, - RefPtr elementType, + RefPtr structuredBufferType, + RefPtr elementType, LayoutRulesImpl* rules); -- cgit v1.2.3