mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
Add Device::Tick for periodic work
This commit is contained in:
committed by
Corentin Wallez
parent
b947993e1a
commit
dbb5729e64
@@ -89,6 +89,9 @@ namespace null {
|
||||
return new TextureViewBase(builder);
|
||||
}
|
||||
|
||||
void Device::TickImpl() {
|
||||
}
|
||||
|
||||
void Device::AddPendingOperation(std::unique_ptr<PendingOperation> operation) {
|
||||
pendingOperations.emplace_back(std::move(operation));
|
||||
}
|
||||
|
||||
@@ -107,6 +107,8 @@ namespace null {
|
||||
TextureBase* CreateTexture(TextureBuilder* builder) override;
|
||||
TextureViewBase* CreateTextureView(TextureViewBuilder* builder) override;
|
||||
|
||||
void TickImpl() override;
|
||||
|
||||
void AddPendingOperation(std::unique_ptr<PendingOperation> operation);
|
||||
std::vector<std::unique_ptr<PendingOperation>> AcquirePendingOperations();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user