Bug 252729

Summary: [WebGPU][WGSL] @builtin(frag_depth) should be clamped to viewport z-bounds
Product: WebKit Reporter: Mike Wyrzykowski <mwyrzykowski>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Mike Wyrzykowski 2023-02-21 23:36:16 PST
If the shader writes to @builtin(frag_depth) then the generated metal source should clamp the write to the z-bounds of the viewport if the depth clip mode is MTLDepthClipModeClamp
Comment 1 Radar WebKit Bug Importer 2023-02-21 23:36:36 PST
<rdar://problem/105765900>