commit | 75c5067ed12e89948e8c6a3a9c0201b3ffee65ab | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Thu Jun 24 02:01:46 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 24 02:01:46 2021 +0000 |
tree | c5193d8a7b8406419e3100ec0024e2288447da23 | |
parent | 2a57db73cbfc35bc9446bdfee691359934b99340 [diff] |
Implement initialization of multisampled textures Metal needs RenderTarget usage to be added to the texture allocation so the clear can be done using a render pass. Already working for GL which does not have usage flags on creation. Also working on Vulkan which does not need a render pass. We use vkCmdClearColorImage. D3D12 also needs a render pass to clear multisampled textures, but it already requires multisampled textures to be created with RenderTarget flags. To test the behavior, NonzeroTextureCreation tests are expanded, and the ExpectSampledDepthData helper is factored into a more general ExpectSampledFloatData helper. Fixes: dawn:794 Change-Id: If0f9f26f3c58b4292c85265aa7ff330e9931ddae Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/55604 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.