commit | ca2c0efb721a890e99e7d9917ba3cbd5634692c0 | [log] [tgz] |
---|---|---|
author | Geoff Lang <geofflang@chromium.org> | Wed Feb 26 13:16:15 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 26 13:16:15 2025 -0800 |
tree | a9998c6f401068fda93490734037c6e81f407e30 | |
parent | eb97c4744c7da13e71e9bcf420fd0864bbc361ca [diff] |
Add DAWN_GL_TRY macros to validate OpenGL function calls These calls wrap each OpenGL function with: - ClearErrors to clear previous errors and log them - The OpenGL function call - CheckError to check for new errors and return them DAWN_GL_TRY no-ops the errors checks when assertions are disabled. DAWN_GL_TRY_ALWAYS_CHECK never no-ops the errors checks and should be used to wrap function calls that likely make allocations in the driver. Bug: 361372970 Change-Id: I4e68e818446a40d8277d22db3538480c3d12871c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/217354 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Geoff Lang <geofflang@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.