diff options
| author | Tim Foley <tim.foley.is@gmail.com> | 2017-08-09 11:20:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-09 11:20:09 -0700 |
| commit | 6e4830f4d74adef0a47c6503d84dc114240fafa3 (patch) | |
| tree | 4f549da8c05be186f12442565389d9f3df44c6d7 /source/slang/type-layout.h | |
| parent | 8e4c0c35d6c2d0fd754b713441c2eee8f13f87b2 (diff) | |
| parent | 695c2700de54a5fec72ce7214c137a1dc3a02d7b (diff) | |
Merge pull request #155 from tfoleyNV/renaming
Major naming overhaul:
Diffstat (limited to 'source/slang/type-layout.h')
| -rw-r--r-- | source/slang/type-layout.h | 26 |
1 files changed, 13 insertions, 13 deletions
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<ExpressionType> type; - ExpressionType* getType() { return type.Ptr(); } + RefPtr<Type> 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<TypeLayout> 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<FunctionSyntaxNode> entryPoint; + RefPtr<FuncDecl> 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<TypeLayout> CreateTypeLayout(ExpressionType* type, LayoutRulesImpl* rules); -RefPtr<TypeLayout> CreateTypeLayout(ExpressionType* type, LayoutRulesImpl* rules, SimpleLayoutInfo offset); +RefPtr<TypeLayout> CreateTypeLayout(Type* type, LayoutRulesImpl* rules); +RefPtr<TypeLayout> CreateTypeLayout(Type* type, LayoutRulesImpl* rules, SimpleLayoutInfo offset); // @@ -551,7 +551,7 @@ RefPtr<ParameterBlockTypeLayout> createParameterBlockTypeLayout( RefPtr<ParameterBlockType> parameterBlockType, LayoutRulesImpl* parameterBlockRules, - RefPtr<ExpressionType> elementType, + RefPtr<Type> elementType, LayoutRulesImpl* elementTypeRules); RefPtr<ParameterBlockTypeLayout> @@ -565,8 +565,8 @@ createParameterBlockTypeLayout( RefPtr<StructuredBufferTypeLayout> createStructuredBufferTypeLayout( ShaderParameterKind kind, - RefPtr<ExpressionType> structuredBufferType, - RefPtr<ExpressionType> elementType, + RefPtr<Type> structuredBufferType, + RefPtr<Type> elementType, LayoutRulesImpl* rules); |
