[all-commits] [llvm/llvm-project] e3fd0b: [HLSL] Add resource binding attribute for HLSL.
Xiang Li via All-commits
all-commits at lists.llvm.org
Thu Sep 22 11:51:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e3fd0b20731f559ba90a9a32f6489499a63cf2b5
https://github.com/llvm/llvm-project/commit/e3fd0b20731f559ba90a9a32f6489499a63cf2b5
Author: Xiang Li <python3kgae at outlook.com>
Date: 2022-09-22 (Thu, 22 Sep 2022)
Changed paths:
M clang/include/clang/Basic/Attr.td
M clang/include/clang/Basic/AttrDocs.td
M clang/include/clang/Basic/DiagnosticParseKinds.td
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Parse/ParseHLSL.cpp
M clang/lib/Sema/SemaDeclAttr.cpp
A clang/test/AST/HLSL/resource_binding_attr.hlsl
A clang/test/SemaHLSL/resource_binding_attr_error.hlsl
Log Message:
-----------
[HLSL] Add resource binding attribute for HLSL.
The resource binding attribute is to set the virtual registers and logical register spaces resources in HLSL are bound to.
Format is ''register(ID, space)'' like register(t3, space1).
ID must be start with
t – for shader resource views (SRV),
s – for samplers,
u – for unordered access views (UAV),
b – for constant buffer views (CBV).
Register space is default to space0.
The full documentation is available here: https://docs.microsoft.com/en-us/windows/win32/direct3d12/resource-binding-in-hlsl
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D130033
More information about the All-commits
mailing list