summaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2025-11-18 13:38:43 -0800
committerGitHub <noreply@github.com>2025-11-18 13:38:43 -0800
commitc4898f3f229027e6cbdf8f9db77b8c14d70f6599 (patch)
treedddb506e5d74cd0333f0e631080077ec808f42be /runtimes
parent31ec633a0edaeca4d68f7f04269223a4c29396c5 (diff)
[HLSL][DirectX] Use a padding type for HLSL buffers. (#167404)
This change drops the use of the "Layout" type and instead uses explicit padding throughout the compiler to represent types in HLSL buffers. There are a few parts to this, though it's difficult to split them up as they're very interdependent: 1. Refactor HLSLBufferLayoutBuilder to allow us to calculate the padding of arbitrary types. 2. Teach Clang CodeGen to use HLSL specific paths for cbuffers when generating aggregate copies, array accesses, and structure accesses. 3. Simplify DXILCBufferAccesses such that it directly replaces accesses with dx.resource.getpointer rather than recalculating the layout. 4. Basic infrastructure for SPIR-V handling, but the implementation itself will need work in follow ups. Fixes several issues, including #138996, #144573, and #156084. Resolves #147352.
Diffstat (limited to 'runtimes')
0 files changed, 0 insertions, 0 deletions