From 1c969b9a85e2e6d6981a31bb758647fc61cf6482 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 11 Feb 2019 09:41:10 -0500 Subject: [[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. --- source/slang/check.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'source/slang/check.cpp') 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(attr)) + { + // Has no args + SLANG_ASSERT(attr->args.Count() == 0); + } else if (as(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; -- cgit v1.2.3