mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 00:47:13 +00:00
Add device reference counting
This commit is contained in:
@@ -101,12 +101,6 @@ namespace null {
|
||||
return std::move(pendingOperations);
|
||||
}
|
||||
|
||||
void Device::Reference() {
|
||||
}
|
||||
|
||||
void Device::Release() {
|
||||
}
|
||||
|
||||
// Buffer
|
||||
|
||||
struct BufferMapReadOperation : PendingOperation {
|
||||
|
||||
@@ -112,10 +112,6 @@ namespace null {
|
||||
void AddPendingOperation(std::unique_ptr<PendingOperation> operation);
|
||||
std::vector<std::unique_ptr<PendingOperation>> AcquirePendingOperations();
|
||||
|
||||
// NXT API
|
||||
void Reference();
|
||||
void Release();
|
||||
|
||||
private:
|
||||
std::vector<std::unique_ptr<PendingOperation>> pendingOperations;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user