llvm-project/clang/test/SemaHLSL
Xiang Li b02d88d5af [HLSL] Add shader attribute
Shader attribute is for shader library identify entry functions.
Here's an example,

[shader("pixel")]
float ps_main() : SV_Target {
  return 1;
}

When compile this shader to library target like -E lib_6_3, compiler needs to know ps_main is an entry function for pixel shader. Shader attribute is to offer the information.

A new attribute HLSLShader is added to support shader attribute. It has an EnumArgument which included all possible shader stages.

Reviewed By: aaron.ballman, MaskRay

Differential Revision: https://reviews.llvm.org/D123907
2022-04-20 23:46:43 -07:00
..
Semantics [HLSL] Add Semantic syntax, and SV_GroupIndex 2022-04-14 10:21:58 -05: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] Pointers are unsupported in HLSL 2022-04-14 13:32:51 -05:00
prohibit_reference.hlsl [HLSL] Pointers are unsupported in HLSL 2022-04-14 13:32:51 -05:00
shader_type_attr.hlsl [HLSL] Add shader attribute 2022-04-20 23:46:43 -07:00