Bug 252729 - [WebGPU][WGSL] @builtin(frag_depth) should be clamped to viewport z-bounds
Summary: [WebGPU][WGSL] @builtin(frag_depth) should be clamped to viewport z-bounds
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-02-21 23:36 PST by Mike Wyrzykowski
Modified: 2023-02-21 23:36 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>