commit | 62650e52be88274d3a5cb30e352b42867be57ce9 | [log] [tgz] |
---|---|---|
author | Colin Blundell <blundell@chromium.org> | Fri Jan 12 15:44:51 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 12 15:44:51 2024 +0000 |
tree | 25f800fe520bd692884b2f75a62c6d5834cd7932 | |
parent | 162cc95bdd5640aa23ae27c61cbc9cf08c81eb45 [diff] |
[Mac] Simplify Metal descriptor creation for SharedTextureMemory InitializeFromSharedTextureMemoryIOSurface() currently calls CreateMetalTextureDescriptor() when creating single-planar textures. The latter function is very general-purpose, whereas textures created from SharedTextureMemory have several fixed configuration parameters by SharedTextureMemory semantics and validation. This CL duplicates and simplifies the code from CreateMetalTextureDescriptor() inline into InitializeFromSharedTextureMemoryIOSurface(). This will facilitate relaxing Metal texture usages for this use case in a followup CL as well as moving this code into SharedTextureMemoryMTL. This CL also makes a small related simplification for the multiplanar case: the sample count can be hardcoded to 1 due to SharedTextureMemory semantics rather than passing GetSampleCount(). Change-Id: Ibbe8d9a4d80abeb3ff51154bab58e3592d16c6b9 Bug: dawn:2152, 1493854 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/169381 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Colin Blundell <blundell@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.