Rename draw commands to match WebGPU IDL

BUG=dawn:51

Change-Id: I2a78f4e77c54aeae48d3fb78bf4701352ff40529
Reviewed-on: https://dawn-review.googlesource.com/c/3040
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
This commit is contained in:
Jiawei Shao
2018-12-10 05:20:19 +00:00
committed by Commit Bot service account
parent 48a1923afb
commit c789b84d8d
32 changed files with 120 additions and 120 deletions

View File

@@ -531,10 +531,10 @@ namespace {
}
const auto& oIndicesBuffer = buffers.at(iIndices.bufferView);
pass.SetIndexBuffer(oIndicesBuffer, static_cast<uint32_t>(iIndices.byteOffset));
pass.DrawElements(static_cast<uint32_t>(iIndices.count), 1, 0, 0);
pass.DrawIndexed(static_cast<uint32_t>(iIndices.count), 1, 0, 0);
} else {
// DrawArrays
pass.DrawArrays(vertexCount, 1, 0, 0);
pass.Draw(vertexCount, 1, 0, 0);
}
}
}