llvm-project/clang/test/SemaHLSL
Xiang Li e3fd0b2073 [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
2022-09-22 11:51:21 -07:00
..
BuiltIns Start support for HLSL `RWBuffer` 2022-07-28 08:49:50 -05:00
Semantics [HLSL] Entry functions require param annotation 2022-08-24 14:35:11 -05:00
AvailabilityMarkup.hlsl [HLSL] Enable availability attribute 2022-09-16 16:04:27 -05:00
GlobalConstructors.hlsl [HLSL] Call global constructors inside entry 2022-09-09 09:01:28 -05:00
Wave.hlsl [HLSL] Change WaveActiveCountBits to wrapper of __builtin_hlsl_wave_active_count_bits 2022-06-30 06:16:51 -07:00
WaveBuiltinAvailability.hlsl [HLSL] Enable availability attribute 2022-09-16 16:04:27 -05:00
cb_error.hlsl [HLSL] Support cbuffer/tbuffer for hlsl. 2022-09-21 10:07:43 -07:00
entry.hlsl [HLSL] Support -E option for HLSL. 2022-08-04 16:54:19 -07:00
lit.local.cfg
num_threads.hlsl [HLSL] Further improve to numthreads diagnostics 2022-03-31 11:34:01 -05:00
prohibit_pointer.hlsl [HLSL] Support -E option for HLSL. 2022-08-04 16:54:19 -07:00
prohibit_reference.hlsl [HLSL] Pointers are unsupported in HLSL 2022-04-14 13:32:51 -05:00
resource_binding_attr_error.hlsl [HLSL] Add resource binding attribute for HLSL. 2022-09-22 11:51:21 -07:00
shader_type_attr.hlsl [HLSL] Support -E option for HLSL. 2022-08-04 16:54:19 -07:00