| Issue |
114275
|
| Summary |
[HLSL] DIspatchThreadID/GroupID and related semantic support
|
| Labels |
HLSL
|
| Assignees |
llvm-beanz
|
| Reporter |
Keenuts
|
Hi!
As I started to look into some thread/group related semantics, I noticed SV_DispatchThreadID has been implemented.
>From MSDN, semantic is a uint3, each element for 1 dimension.
However, the dx_thread_id intrinsic is implemented as `i32 dx_thread_id(i32)`, and it looks like this intrinsic is called 1 time for each dimension. Do you know why? Is that expected?
On the SPIR-V side, we gather all 3 dimensions at the same time, hence it would be convenient to have the following intrinsic prototype instead: `<3 x i32> thread_id()`.
On the DXIL side (generated by DXC), looks like there are no builtin call, the semantic is directly linked to an `<3 x i32>` input parameter with the semantic.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs