mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 21:17:45 +00:00
Add copy constructors to the C++ Dawn interface
This removes the need for Clone() so it is removed and also adds tests for the new constructors. BUG=dawn:11 Change-Id: Ia45c765c2d30e40b0e036427793a62327b2008fc Reviewed-on: https://dawn-review.googlesource.com/c/1901 Reviewed-by: Stephen White <senorblanco@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
5aac265dcb
commit
aa7109c148
@@ -232,9 +232,9 @@ void initSim() {
|
||||
dawn::PipelineLayout pl = utils::MakeBasicPipelineLayout(device, &bgl);
|
||||
|
||||
dawn::ComputePipelineDescriptor csDesc;
|
||||
csDesc.module = module.Clone();
|
||||
csDesc.module = module;
|
||||
csDesc.entryPoint = "main";
|
||||
csDesc.layout = pl.Clone();
|
||||
csDesc.layout = pl;
|
||||
updatePipeline = device.CreateComputePipeline(&csDesc);
|
||||
|
||||
dawn::BufferView updateParamsView = updateParams.CreateBufferViewBuilder()
|
||||
|
||||
Reference in New Issue
Block a user