Add Buffer::MapReadAsync state-tracking

This commit is contained in:
Corentin Wallez
2017-06-09 10:51:29 -04:00
committed by Corentin Wallez
parent f45bdb89c6
commit b1c19eeb4f
15 changed files with 156 additions and 2 deletions

View File

@@ -158,6 +158,8 @@ namespace metal {
private:
void SetSubDataImpl(uint32_t start, uint32_t count, const uint32_t* data) override;
void MapReadAsyncImpl(uint32_t serial, uint32_t start, uint32_t count) override;
void UnmapImpl() override;
Device* device;
std::mutex mutex;

View File

@@ -225,6 +225,14 @@ namespace metal {
[mtlBuffer didModifyRange:NSMakeRange(start * sizeof(uint32_t), count * sizeof(uint32_t))];
}
void Buffer::MapReadAsyncImpl(uint32_t serial, uint32_t start, uint32_t count) {
// TODO(cwallez@chromium.org): Implement Map Read for the metal backend
}
void Buffer::UnmapImpl() {
// TODO(cwallez@chromium.org): Implement Map Read for the metal backend
}
// BufferView
BufferView::BufferView(Device* device, BufferViewBuilder* builder)