commit | 8582bafffa54d01fba95edb662e187a00bcc734f | [log] [tgz] |
---|---|---|
author | Stephen White <senorblanco@chromium.org> | Wed Oct 30 23:04:30 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 30 23:04:30 2024 +0000 |
tree | d1017202a0fe94c096bb9df64db8f663f8e92a67 | |
parent | 5d9a2b621a31c043dc0b16b8b46ec931bfc66d9e [diff] |
OpenGL: fix placeholder sampler in vertex stage. The pipeline queries each shader stage in turn to ask if it needs a placeholder sampler (e.g., for textureLoad() with no sampler). However, CompileShader() was initializing "needsPlaceholderSampler" to false on each call. If the vertex stage needs a placeholder sampler, but the fragment stage doesn't, it will be overwritten back to false. The fix is not to initialize it to false in CompileShader(). It's already initialized to false by PipelineGL::InitializeBase(). (Long-winded explanation for a one-line fix.) Bug: 374890770 Change-Id: I98109e2006c12149be1b6eedaaf05fed7c1c5541 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/213054 Reviewed-by: Corentin Wallez <cwallez@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.