Bug 199916 - [WHLSL] Some shader semantics are the wrong type
Summary: [WHLSL] Some shader semantics are the wrong type
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-18 14:19 PDT by Justin Fan
Modified: 2020-05-05 00:42 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Fan 2019-07-18 14:19:17 PDT
In HLSL, SV_GroupThreadID, SV_DispatchThreadID, and SV_GroupID are uint3 vectors, but in WHLSL they are float3.

https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-semantics

WHLSL makes no sense here. It's not possible to have a non-integer thread index. The Metal equivalents generated by our compiler are also uint3.
Comment 1 Myles C. Maxfield 2020-05-05 00:42:34 PDT
WHLSL is no longer relevant.