Issue |
138276
|
Summary |
[SPIRV] Add the `spirv.Layout` type to the SPIR-V backend.
|
Labels |
HLSL,
backend:SPIR-V
|
Assignees |
s-perron
|
Reporter |
s-perron
|
Add this type in accordance with the [design doc](https://github.com/llvm/wg-hlsl/pull/171).
TL/DR; This type is needed because CBuffer have a feature where the developer can set the offset of a particular member, and there are no restrictions on that member. We also want to keep the order of the member in llvm-ir the same as the declaration order in HLSL. This means we cannot use the standard algorithm to determine the offset of a member in a CBuffer struct.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs