llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

HLSL cbuffer & tbuffer support

Open llvm-beanz opened this issue 4 years ago • 4 comments

In HLSL the cbuffer and tbuffer keywords denote constant and texture buffer formats.

As a developer I would like to use the cbuffer and tbuffer in LLVM.

Dependent on: Resource work

AC: buffer-type codegen is implemented

cbuffer is implemented cbuffer tests are implemented cbuffer tests are integrated in CI pipeline

tbuffer is implemented tbuffer tests are implemented tbuffer tests are integrated in CI pipeline

llvm-beanz avatar Apr 26 '22 19:04 llvm-beanz

  1. Enable PCH support to test AST node added for buffer. https://reviews.llvm.org/D132421

  2. Add cbuffer AST node. https://reviews.llvm.org/D129883 Updated, need review again.

  3. D130033 [HLSL] Add resource binding attribute for HLSL. https://reviews.llvm.org/D130033 Approved

  4. D130131 [HLSL] CodeGen hlsl cbuffer/tbuffer. https://reviews.llvm.org/D130131 Need change. Might be affected by 1. Will update once 1 is in.

  5. D130951 [HLSL] CodeGen hlsl resource binding. https://reviews.llvm.org/D130951 Need review

  6. D131370 [DirectX backend] Translate cbuffer into DXIL. https://reviews.llvm.org/D131370 Might be affected by 3. Will update once 3 is in.

  7. legacy cbuffer layout support https://reviews.llvm.org/D132986 Need review.

python3kgae avatar Sep 04 '22 04:09 python3kgae

Got different ideas to implement. I need to update the code.

python3kgae avatar Jul 06 '23 18:07 python3kgae

@bogner - please review and possibly close and create new tasks as the buffer type / resource dependency is evaluated.

davidcook-msft avatar Dec 12 '23 19:12 davidcook-msft

The remaining work here should be captured by DXIL resource lowering in general and the following tasks: https://github.com/llvm/llvm-project/issues/75828, https://github.com/llvm/llvm-project/issues/75829, https://github.com/llvm/llvm-project/issues/75830, https://github.com/llvm/llvm-project/issues/75833

bogner avatar Dec 18 '23 17:12 bogner