Make dawn idl support dynamic buffer offset

This patch simply added dynamic buffer offset in dawn idl and
modify the shape of SetBindGroup.

BUG=dawn:55

Change-Id: I516e08f3ee558ba375a87d98eaea6d60e93d4514
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/5600
Commit-Queue: Shaobo Yan <shaobo.yan@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
Yan, Shaobo
2019-03-18 06:01:37 +00:00
committed by Commit Bot service account
parent 931311700c
commit 991ab98f11
27 changed files with 130 additions and 46 deletions

View File

@@ -285,7 +285,7 @@ dawn::CommandBuffer createCommandBuffer(const dawn::Texture backbuffer, size_t i
{
dawn::ComputePassEncoder pass = encoder.BeginComputePass();
pass.SetPipeline(updatePipeline);
pass.SetBindGroup(0, updateBGs[i]);
pass.SetBindGroup(0, updateBGs[i], 0, nullptr);
pass.Dispatch(kNumParticles, 1, 1);
pass.EndPass();
}