diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-20 09:54:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-20 09:54:38 -0700 |
| commit | 40617db15d87ece6e7cc88da23f747f8f827c69a (patch) | |
| tree | b53ae92e80a1e447d738129e2015f8803da6bea4 /source/slang/syntax.h | |
| parent | 5b85b51686bafe969c4d1c75b59aa17bc014367a (diff) | |
| parent | c163c33664af1a68613ecbf0c4e747ad3ee3dbb1 (diff) | |
Merge pull request #35 from tfoleyNV/input-patch-type-fix
Fix types for `InputPatch` and `OutputPatch`
Diffstat (limited to 'source/slang/syntax.h')
| -rw-r--r-- | source/slang/syntax.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h index 56574d124..66eddc536 100644 --- a/source/slang/syntax.h +++ b/source/slang/syntax.h @@ -1044,8 +1044,15 @@ namespace Slang class HLSLAppendStructuredBufferType : public BuiltinGenericType {}; class HLSLConsumeStructuredBufferType : public BuiltinGenericType {}; - class HLSLInputPatchType : public BuiltinGenericType {}; - class HLSLOutputPatchType : public BuiltinGenericType {}; + class HLSLPatchType : public DeclRefType + { + public: + ExpressionType* getElementType(); + IntVal* getElementCount(); + }; + + class HLSLInputPatchType : public HLSLPatchType {}; + class HLSLOutputPatchType : public HLSLPatchType {}; // HLSL geometry shader output stream types |
