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/core.meta.slang | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/slang/core.meta.slang') diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index 9da424fba..31da44f3c 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -1122,6 +1122,11 @@ attribute_syntax [vk_binding(binding: int, set: int = 0)] : GLSLBindingAttribu __attributeTarget(DeclBase) attribute_syntax [gl_binding(binding: int, set: int = 0)] : GLSLBindingAttribute; +__attributeTarget(DeclBase) +attribute_syntax [vk_push_constant] : PushConstantAttribute; +__attributeTarget(DeclBase) +attribute_syntax [push_constant] : PushConstantAttribute; + // Statement Attributes __attributeTarget(LoopStmt) -- cgit v1.2.3