llvm-project/clang/test/ParserHLSL
Xiang Li 782ac2182c [HLSL] Support cbuffer/tbuffer for hlsl.
This is first part for support cbuffer/tbuffer.

The format for cbuffer/tbuffer is
BufferType [Name] [: register(b#)] { VariableDeclaration [: packoffset(c#.xyzw)]; ... };

More details at https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-constants

New keyword 'cbuffer' and 'tbuffer' are added.
New AST node HLSLBufferDecl is added.
Build AST for simple cbuffer/tbuffer without attribute support.

The special thing is variables declared inside cbuffer is exposed into global scope.
So isTransparentContext should return true for HLSLBuffer.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D129883
2022-09-21 10:07:43 -07:00
..
access_specifiers.hlsl
cb_error.hlsl [HLSL] Support cbuffer/tbuffer for hlsl. 2022-09-21 10:07:43 -07:00
invalid_inside_cb.hlsl [HLSL] Support cbuffer/tbuffer for hlsl. 2022-09-21 10:07:43 -07:00
lit.local.cfg
semantic_parsing.hlsl