In vulkan subgroup indices are not guaranteed to map to local invocation indices...'ne.g.
Uncategorized
1
Posts
1
Posters
0
Views
-
In vulkan subgroup indices are not guaranteed to map to local invocation indices...
e.g. for wave32 and a 64 lane workgroup this is NOT guaranteed
```
workgroup: [ 0 ... 31 32 ... 63 ]
subgroup: 0: [ 0 ... 31 ], 1: [ 0 ... 31 ]
```
so to be compliant you need to manually reconstruct the local invocation id from the subgroup index and subgroup size. e.g.`let local_id = subgroup_index() * subgroup_size() + subgroup_id();`
So,
1) why the heck (intel? arm?)
2) how 2 HLSL? -
undefined oblomov@sociale.network shared this topic on