From 9914ca800c92e9b3fe768dec4e913a302f3d678d Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 31 Jul 2018 11:03:53 -0400 Subject: Feature/attributed binding (#621) * Typo fix, and added dxc to command line documentation. * Fix small typos. Added support for Scope to lexer. Fix bug in Token ctor. * Add support for attribute names that are scoped. * Added GLSLBindingAttribute. Make binding work through core.met.slang. * Allow [[gl::binding(binding, set)]] [[vk::binding(binding,set)]] --- source/slang/core.meta.slang.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/slang/core.meta.slang.h') diff --git a/source/slang/core.meta.slang.h b/source/slang/core.meta.slang.h index d6c742321..555353c92 100644 --- a/source/slang/core.meta.slang.h +++ b/source/slang/core.meta.slang.h @@ -1132,6 +1132,14 @@ SLANG_SPLICE(kIROp_Eql SLANG_RAW(")\n") SLANG_RAW("bool operator==(E left, E right);\n") SLANG_RAW("\n") +SLANG_RAW("// Binding Attributes\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(DeclBase)\n") +SLANG_RAW("attribute_syntax [vk_binding(binding: int, set: int = 0)]\t\t\t: GLSLBindingAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(DeclBase)\n") +SLANG_RAW("attribute_syntax [gl_binding(binding: int, set: int = 0)]\t\t\t: GLSLBindingAttribute;\n") +SLANG_RAW("\n") SLANG_RAW("// Statement Attributes\n") SLANG_RAW("\n") SLANG_RAW("__attributeTarget(LoopStmt)\n") @@ -1199,3 +1207,4 @@ SLANG_RAW("\n") SLANG_RAW("// Compute Shader\n") SLANG_RAW("__attributeTarget(FuncDecl)\n") SLANG_RAW("attribute_syntax [numthreads(x: int, y: int = 1, z: int = 1)] : NumThreadsAttribute;\n") +SLANG_RAW("\n") -- cgit v1.2.3