mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
Query API: WriteTimestamp
Add WriteTimestamp API on CommandEncoder, ComputePassEncoder and RenderPassEncoder. Bug: dawn:434 Change-Id: Ifeca4efed01d80459d6fefa22ba05bea699b541f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/23244 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Hao Li <hao.x.li@intel.com>
This commit is contained in:
committed by
Commit Bot service account
parent
2ffc55ab38
commit
5191adc58c
@@ -18,6 +18,7 @@
|
||||
#include "dawn_native/Buffer.h"
|
||||
#include "dawn_native/CommandAllocator.h"
|
||||
#include "dawn_native/ComputePipeline.h"
|
||||
#include "dawn_native/QuerySet.h"
|
||||
#include "dawn_native/RenderBundle.h"
|
||||
#include "dawn_native/RenderPipeline.h"
|
||||
#include "dawn_native/Texture.h"
|
||||
@@ -175,6 +176,11 @@ namespace dawn_native {
|
||||
cmd->~SetVertexBufferCmd();
|
||||
break;
|
||||
}
|
||||
case Command::WriteTimestamp: {
|
||||
WriteTimestampCmd* cmd = commands->NextCommand<WriteTimestampCmd>();
|
||||
cmd->~WriteTimestampCmd();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
commands->DataWasDestroyed();
|
||||
@@ -300,6 +306,11 @@ namespace dawn_native {
|
||||
commands->NextCommand<SetVertexBufferCmd>();
|
||||
break;
|
||||
}
|
||||
|
||||
case Command::WriteTimestamp: {
|
||||
commands->NextCommand<WriteTimestampCmd>();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user