diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-02-11 09:41:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-11 09:41:10 -0500 |
| commit | 1c969b9a85e2e6d6981a31bb758647fc61cf6482 (patch) | |
| tree | 1c5df51b207c43198f360d353108666ab234cc4b /source/slang/check.cpp | |
| parent | 9f8a92e468a626abf82d08a730e009321595da07 (diff) | |
[[vk::shader_record]] (#836)
* * Replaced ShaderRecordNVLayoutModifier with ShaderRecordAttribute
* Allowed attributed [[vk::shader_record] and [[shader_record]]
* Checking there is at most 1 ShaderRecord active
* Small typo fixes
* Slightly improve diagnostic.
Replace expected file.
Diffstat (limited to 'source/slang/check.cpp')
| -rw-r--r-- | source/slang/check.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp index 8dfd7e640..3485afeea 100644 --- a/source/slang/check.cpp +++ b/source/slang/check.cpp @@ -2607,6 +2607,11 @@ namespace Slang // Has no args SLANG_ASSERT(attr->args.Count() == 0); } + else if (as<ShaderRecordAttribute>(attr)) + { + // Has no args + SLANG_ASSERT(attr->args.Count() == 0); + } else if (as<EarlyDepthStencilAttribute>(attr)) { // Has no args @@ -3993,7 +3998,7 @@ namespace Slang decl->SetCheckState(getCheckedState()); } - void visitGlobalGenericParamDecl(GlobalGenericParamDecl * decl) + void visitGlobalGenericParamDecl(GlobalGenericParamDecl* decl) { if (decl->IsChecked(getCheckedState())) return; if (checkingPhase == CheckingPhase::Header) @@ -4040,7 +4045,7 @@ namespace Slang checkModifiers(stmt); } - void visitFuncDecl(FuncDecl *functionNode) + void visitFuncDecl(FuncDecl* functionNode) { if (functionNode->IsChecked(getCheckedState())) return; |
