mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Descriptorize ComputePipeline
Change-Id: Ic9d7014ba44d927d7f9ddf81a8870432c68941e8
This commit is contained in:
committed by
Corentin Wallez
parent
eb7d64a17f
commit
8e335a5585
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user