mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
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:
committed by
Commit Bot service account
parent
48a1923afb
commit
c789b84d8d
@@ -53,13 +53,13 @@ namespace dawn_native {
|
||||
DispatchCmd* dispatch = commands->NextCommand<DispatchCmd>();
|
||||
dispatch->~DispatchCmd();
|
||||
} break;
|
||||
case Command::DrawArrays: {
|
||||
DrawArraysCmd* draw = commands->NextCommand<DrawArraysCmd>();
|
||||
draw->~DrawArraysCmd();
|
||||
case Command::Draw: {
|
||||
DrawCmd* draw = commands->NextCommand<DrawCmd>();
|
||||
draw->~DrawCmd();
|
||||
} break;
|
||||
case Command::DrawElements: {
|
||||
DrawElementsCmd* draw = commands->NextCommand<DrawElementsCmd>();
|
||||
draw->~DrawElementsCmd();
|
||||
case Command::DrawIndexed: {
|
||||
DrawIndexedCmd* draw = commands->NextCommand<DrawIndexedCmd>();
|
||||
draw->~DrawIndexedCmd();
|
||||
} break;
|
||||
case Command::EndComputePass: {
|
||||
EndComputePassCmd* cmd = commands->NextCommand<EndComputePassCmd>();
|
||||
@@ -142,12 +142,12 @@ namespace dawn_native {
|
||||
commands->NextCommand<DispatchCmd>();
|
||||
break;
|
||||
|
||||
case Command::DrawArrays:
|
||||
commands->NextCommand<DrawArraysCmd>();
|
||||
case Command::Draw:
|
||||
commands->NextCommand<DrawCmd>();
|
||||
break;
|
||||
|
||||
case Command::DrawElements:
|
||||
commands->NextCommand<DrawElementsCmd>();
|
||||
case Command::DrawIndexed:
|
||||
commands->NextCommand<DrawIndexedCmd>();
|
||||
break;
|
||||
|
||||
case Command::EndComputePass:
|
||||
|
||||
Reference in New Issue
Block a user