commit | 4ecfc58777cbedb373d2db21d4d475a50e4d98fd | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Fri Sep 17 07:39:00 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 17 07:39:00 2021 +0000 |
tree | 473661bdca4c9568a555949c57caf8090f9160a2 | |
parent | 110cac1d098f2511d56d4984f6e465fa06cc2a43 [diff] |
D3D12: Support creating render pipeline asynchronously This patch implements the asynchronous path of CreateRenderPipelineAsync on D3D12 backend. 1. Call the constructor of dawn_native::d3d12::RenderPipeline in main thread. 2. Execute dawn_native::RenderPipelineBase::Initialize() (a virtual function) asynchronously. 3. Ensure every operation in dawn_native::d3d12::RenderPipeline::Initialize() is thread-safe. 4. Save all the return values (pipeline object or error message, userdata, etc) in a CreateRenderPipelineAsyncWaitableCallbackTask object and insert this callback task into CallbackTaskManager. 5. In Callback.Finish(): - Insert the pipeline object into the pipeline cache if necessary - Call WGPUCreateRenderPipelineAsyncCallback This patch also removes FlatRenderPipelineDescriptor as it is not needed right now. BUG=dawn:529 TEST=dawn_end2end_tests Change-Id: I7fd30339ab7bea599c483dea4bd1100359982409 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/64440 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Austin Eng <enga@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.