-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DirectX] Introduce llvm.dx.resource.load.cbuffer intrinsic and lower it to cbufferLoadLegacy dxil op #112992
Labels
Comments
This is blocked on llvm/wg-hlsl#50, unless we decide to do a simple case first. |
hekota
added a commit
that referenced
this issue
Feb 20, 2025
Translates `cbuffer` declaration blocks to `target("dx.CBuffer")` type. Creates global variables in `hlsl_constant` address space for all `cbuffer` constant and adds metadata describing which global constant belongs to which constant buffer. For explicit constant buffer layout information an explicit layout type `target("dx.Layout")` is used. This might change in the future. The constant globals are temporary and will be removed in upcoming pass that will translate `load` instructions in the `hlsl_constant` address space to constant buffer load intrinsics calls off a CBV handle (#124630, #112992). See [Constant buffer design doc](llvm/wg-hlsl#94) for more details. Fixes #113514, #106596
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We need LLVM intrinsic for cbuffer load which will be lowered to the op.dx.cbufferLoadLegacy dxil operation.
The text was updated successfully, but these errors were encountered: