Descriptorize ComputePipeline

Change-Id: Ic9d7014ba44d927d7f9ddf81a8870432c68941e8
This commit is contained in:
Corentin Wallez
2018-08-27 23:12:56 +02:00
committed by Corentin Wallez
parent eb7d64a17f
commit 8e335a5585
35 changed files with 239 additions and 166 deletions

View File

@@ -231,10 +231,11 @@ void initSim() {
dawn::PipelineLayout pl = utils::MakeBasicPipelineLayout(device, &bgl);
updatePipeline = device.CreateComputePipelineBuilder()
.SetLayout(pl)
.SetStage(dawn::ShaderStage::Compute, module, "main")
.GetResult();
dawn::ComputePipelineDescriptor csDesc;
csDesc.module = module.Clone();
csDesc.entryPoint = "main";
csDesc.layout = pl.Clone();
updatePipeline = device.CreateComputePipeline(&csDesc);
dawn::BufferView updateParamsView = updateParams.CreateBufferViewBuilder()
.SetExtent(0, sizeof(SimParams))