diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2018-07-31 11:03:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-31 11:03:53 -0400 |
| commit | 9914ca800c92e9b3fe768dec4e913a302f3d678d (patch) | |
| tree | 49544fb2c0387f39876fd99e112cfc32ed05302d /source/slang/core.meta.slang | |
| parent | 171f524d7ca2922084a33f50c77a1e8797e80949 (diff) | |
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)]]
Diffstat (limited to 'source/slang/core.meta.slang')
| -rw-r--r-- | source/slang/core.meta.slang | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index 836af1a87..899c24539 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -1114,6 +1114,14 @@ __generic<E : __EnumType> __intrinsic_op($(kIROp_Eql)) bool operator==(E left, E right); +// Binding Attributes + +__attributeTarget(DeclBase) +attribute_syntax [vk_binding(binding: int, set: int = 0)] : GLSLBindingAttribute; + +__attributeTarget(DeclBase) +attribute_syntax [gl_binding(binding: int, set: int = 0)] : GLSLBindingAttribute; + // Statement Attributes __attributeTarget(LoopStmt) @@ -1181,3 +1189,4 @@ attribute_syntax [earlydepthstencil] : EarlyDepthStencilAttribute; // Compute Shader __attributeTarget(FuncDecl) attribute_syntax [numthreads(x: int, y: int = 1, z: int = 1)] : NumThreadsAttribute; + |
