Rename SetRenderPipeline and SetComputePipeline to SetPipeline

To match the WebGPU idl, SetRenderPipeline and SetComputePipeline need to change
the name to SetPipeline.

This patch just rename these two APIs

BUG=dawn:52

Change-Id: I2545c94158ebd051027a018650bf760a25845d73
Reviewed-on: https://dawn-review.googlesource.com/c/3480
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Shaobo Yan <shaobo.yan@intel.com>
This commit is contained in:
Yan, Shaobo
2018-12-21 10:40:26 +00:00
committed by Commit Bot service account
parent 21ed12045b
commit 300eec0f82
26 changed files with 70 additions and 72 deletions

View File

@@ -257,7 +257,7 @@ dawn::CommandBuffer createCommandBuffer(const dawn::RenderPassDescriptor& render
{
dawn::ComputePassEncoder pass = builder.BeginComputePass();
pass.SetComputePipeline(updatePipeline);
pass.SetPipeline(updatePipeline);
pass.SetBindGroup(0, updateBGs[i]);
pass.Dispatch(kNumParticles, 1, 1);
pass.EndPass();
@@ -265,7 +265,7 @@ dawn::CommandBuffer createCommandBuffer(const dawn::RenderPassDescriptor& render
{
dawn::RenderPassEncoder pass = builder.BeginRenderPass(renderPass);
pass.SetRenderPipeline(renderPipeline);
pass.SetPipeline(renderPipeline);
pass.SetVertexBuffers(0, 1, &bufferDst, zeroOffsets);
pass.SetVertexBuffers(1, 1, &modelBuffer, zeroOffsets);
pass.Draw(3, kNumParticles, 0, 0);