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/core.meta.slang | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/slang/core.meta.slang') diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index bd01d679a..0c2b70e10 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -1195,6 +1195,12 @@ attribute_syntax [vk_binding(binding: int, set: int = 0)] : GLSLBindingAttribu __attributeTarget(DeclBase) attribute_syntax [gl_binding(binding: int, set: int = 0)] : GLSLBindingAttribute; + +__attributeTarget(VarDeclBase) +attribute_syntax [vk_shader_record] : ShaderRecordAttribute; +__attributeTarget(VarDeclBase) +attribute_syntax [shader_record] : ShaderRecordAttribute; + __attributeTarget(DeclBase) attribute_syntax [vk_push_constant] : PushConstantAttribute; __attributeTarget(DeclBase) @@ -1294,4 +1300,4 @@ enum _AttributeTargets Function = $( (int) UserDefinedAttributeTargets::Function), }; __attributeTarget(StructDecl) -attribute_syntax [__AttributeUsage(target : _AttributeTargets)] : AttributeUsageAttribute; \ No newline at end of file +attribute_syntax [__AttributeUsage(target : _AttributeTargets)] : AttributeUsageAttribute; -- cgit v1.2.3