mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-19 18:05:31 +00:00
CommandAllocator: Default initalize allocated data.
BUG=dawn:21 Change-Id: I98499385d7397ab431e1bbe00add7ef01941cca6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/7160 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
97f08fa2e6
commit
2e56970932
@@ -44,7 +44,6 @@ namespace dawn_native {
|
||||
}
|
||||
|
||||
DispatchCmd* dispatch = mAllocator->Allocate<DispatchCmd>(Command::Dispatch);
|
||||
new (dispatch) DispatchCmd;
|
||||
dispatch->x = x;
|
||||
dispatch->y = y;
|
||||
dispatch->z = z;
|
||||
@@ -58,7 +57,6 @@ namespace dawn_native {
|
||||
|
||||
SetComputePipelineCmd* cmd =
|
||||
mAllocator->Allocate<SetComputePipelineCmd>(Command::SetComputePipeline);
|
||||
new (cmd) SetComputePipelineCmd;
|
||||
cmd->pipeline = pipeline;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user