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/core.meta.slang | |
| 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/core.meta.slang')
| -rw-r--r-- | source/slang/core.meta.slang | 8 |
1 files changed, 7 insertions, 1 deletions
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; |
