[tint][msl] ArgBufs: detect host-shareable structs inside argbufs Fixes missing padding in MSL structs for buffer bindings, which was caused by those bindings being missed by FindHostShareableStructs() because they're hidden behind pointers in the argument buffer. Fixes: - ComputeMultipleDispatchesTests.IndirectOffset - ComputeMultipleDispatchesTests.ExceedsMaxWorkgroupsWithOffsetNoop - ComputeLayoutMemoryBufferTests.StructMember - ComputeLayoutMemoryBufferTests.NonStructMember - CopyExternalTextureForBrowserTests_Basic.Copy - CopyTextureForBrowser_Formats.ColorConversion - CopyTextureForBrowser_ColorSpace.colorSpaceConversion - ExternalTextureTests.SampleExternalTexture - ExternalTextureTests.TextureDimensionsWithTextureView - ExternalTextureTests.SampleExternalTextureDifferingGroup - ExternalTextureTests.SampleMultiplanarExternalTexture - ExternalTextureTests.SampleMultiplanarExternalTextureNorm16 - ExternalTextureTests.RotateAndOrFlipSampleSinglePlane - ExternalTextureTests.RotateAndOrFlipTextureLoadSinglePlaneNotSquare - ExternalTextureTests.RotateAndOrFlipSampleMultiplanar - ExternalTextureTests.CropSinglePlane - ExternalTextureTests.ApparentSizeEffect - ExternalTextureTests.CropMultiplanar - ExternalTextureTests.SampleExternalTextureAlpha - MultipleWriteThenMultipleReadTests.OneBuffer - ShaderTests.PassMatrixByValue - ShaderTests.PassMatrixInStructByValue - TextureComponentSwizzleTest.UseDefaultSwizzleAfterNonDefaultSwizzle - TextureShaderBuiltinTests.BaseMipLevelTextureView Bug: 363031535 Change-Id: I7471748048f5aff0a170342ea0349406d2b3d17e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/301375 Auto-Submit: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@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.