[Webkit-unassigned] [Bug 264371] New: [WGSL] textureSampleGrad is not implemented
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 7 15:42:20 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=264371
Bug ID: 264371
Summary: [WGSL] textureSampleGrad is not implemented
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebGPU
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mwyrzykowski at apple.com
textureSampleGrad should map to sample which takes a gradient (page 202 of the Metal shading language spec)
Open https://webgpu.github.io/webgpu-samples/samples/normalMap.
Note the failure:
MSL compilation error: Error Domain=MTLLibraryErrorDomain Code=3 "program_source:120:26: error: use of undeclared identifier 'textureSampleGrad'
if ((local7.z >= textureSampleGrad(global11, global8, local7.xy, local2, local3).r)) {
^
" UserInfo={NSLocalizedDescription=program_source:120:26: error: use of undeclared identifier 'textureSampleGrad'
if ((local7.z >= textureSampleGrad(global11, global8, local7.xy, local2, local3).r)) {
it comes from this WGSL:
// Walk the depth texture, and stop when the ray intersects the depth map
var pos = vec3(startUV, 0);
for (var i = 0; i < 32; i++) {
if (pos.z >= textureSampleGrad(depthTexture, textureSampler, pos.xy, ddx, ddy).r) {
break; // Hit the surface
}
pos += posDelta;
}
in https://webgpu.github.io/webgpu-samples/samples/normalMap#./normalMap.wgsl
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231107/09721035/attachment-0001.htm>
More information about the webkit-unassigned
mailing list