commit | 0a7731b7d7855b01b929f7fe364f9c208b225ab5 | [log] [tgz] |
---|---|---|
author | Antonio Maiorano <amaiorano@google.com> | Wed Mar 13 23:52:20 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 13 23:52:20 2024 +0000 |
tree | ff0d5bf0ff3944494a89cf239eebcf9d44b6bd17 | |
parent | 794da48b63b88c18da0650c8692c10b2e55ec68c [diff] |
tint/win: fix TmpFilePath asserting in some msvc crts We were using the "x" flag for exclusive mode in the call to fopen_s, but this seems not to be supported in all c runtimes. For instance, we get this error when using the debug crt on the LUCI windows bots: ``` minkernel\crts\ucrt\inc\corecrt_internal_stdio.h(656) : Assertion failed: ("Invalid file open mode", 0) ``` Replaced this with MS-specific _sopen_s that accepts flags `_O_CREAT | _O_EXCL` to create a file in exclusive mode, failing if it already exists. Bug: dawn:2435 Change-Id: I1ef997846c6d034dea4cae619cd85c6b6e9d9295 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/179140 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Austin Eng <enga@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.