commit | eb9c4c3a80dc70d6638aa356b6182e9df13e379f | [log] [tgz] |
---|---|---|
author | Stephen White <senorblanco@chromium.org> | Wed Oct 02 21:05:35 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 02 21:05:35 2024 +0000 |
tree | 99e5913743272928742867c73920c14e34936dba | |
parent | 10c7610b1fd8d65b4486f75cd4e1bcb1f786e480 [diff] |
GLSL: workaround texture sampling with offset on depth arrays. When calling textureSample() or textureSampleCompare() on a texture_depth_2d_array with an offset, use GLSL's textureGradOffset() instead of textureOffset(), and explicitly pass dFdx and dFdy of the texture coords parameter as the gradients. Bug: 42240302 Change-Id: I8b18d832f62924b2c7d6d63c39a29e9e18ae6cbc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/198117 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Stephen White <senorblanco@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.