From 6a8ad6eb4cab72c18de48762768e04d08b60a21c Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 22 Aug 2018 11:36:02 -0400 Subject: Support for [[vk::push_constant]] (#629) * Support for attributed [[vk::push_constant]] and [[push_constant]]. Can also use layout(push_constant). * Fix test so matches the expected output. * Add expected output to binding-push-constant-gl.hlsl * Trivial change to force travis rebuild to test the gcc linux build really has a problem. --- source/slang/check.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/slang/check.cpp') diff --git a/source/slang/check.cpp b/source/slang/check.cpp index c5ebf7f30..95a958495 100644 --- a/source/slang/check.cpp +++ b/source/slang/check.cpp @@ -1959,6 +1959,11 @@ namespace Slang getSink()->diagnose(attr, Diagnostics::expectedSingleIntArg, attr->name); } } + else if (attr.As()) + { + // Has no args + SLANG_ASSERT(attr->args.Count() == 0); + } else { if(attr->args.Count() == 0) -- cgit v1.2.3