Bug 272599

Summary: [WebGPU] https://playcanvas.github.io/#/misc/spineboy fails because sampler is not compatible with sampler_comparison
Product: WebKit Reporter: Mike Wyrzykowski <mwyrzykowski>
Component: WebGPUAssignee: Mike Wyrzykowski <mwyrzykowski>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Mike Wyrzykowski
Reported 2024-04-12 12:36:05 PDT
Repro: Open https://playcanvas.github.io/#/misc/spineboy Place a breakpoint in GlobalVariableRewriter.cpp:1486 static bool isSampler(const AST::Variable& variable, SamplerBindingType bindingType) return bindingTypeForType(variable.storeType()) == BindingType::SamplerComparison; fails because the storeType is a Sampler and not a SamplerComparison
Attachments
Mike Wyrzykowski
Comment 1 2024-04-12 18:01:05 PDT
the sampler which fails I think is: @group(1) @binding(6) var shadowAtlasTexture_sampler : sampler; which is not used anywhere from what I can tell in the WGSL source. we are not considering the 'statically used' portion of the specification: https://www.w3.org/TR/webgpu/#statically-used
Radar WebKit Bug Importer
Comment 2 2024-04-12 18:36:47 PDT
Mike Wyrzykowski
Comment 3 2024-04-12 18:40:43 PDT
EWS
Comment 4 2024-04-15 08:53:17 PDT
Committed 277503@main (626da617fd7b): <https://commits.webkit.org/277503@main> Reviewed commits have been landed. Closing PR #27211 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.