mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 00:47:13 +00:00
Fix clang/GCC warnings
This commit is contained in:
committed by
Corentin Wallez
parent
f30dffa75f
commit
98c90d4faa
@@ -53,7 +53,7 @@ namespace metal {
|
||||
uploader->BufferSubData(mtlBuffer, start * sizeof(uint32_t), count * sizeof(uint32_t), data);
|
||||
}
|
||||
|
||||
void Buffer::MapReadAsyncImpl(uint32_t serial, uint32_t start, uint32_t count) {
|
||||
void Buffer::MapReadAsyncImpl(uint32_t serial, uint32_t start, uint32_t) {
|
||||
MapReadRequestTracker* tracker = ToBackend(GetDevice())->GetMapReadTracker();
|
||||
tracker->Track(this, serial, start);
|
||||
}
|
||||
@@ -62,7 +62,7 @@ namespace metal {
|
||||
// Nothing to do, Metal StorageModeShared buffers are always mapped.
|
||||
}
|
||||
|
||||
void Buffer::TransitionUsageImpl(nxt::BufferUsageBit currentUsage, nxt::BufferUsageBit targetUsage) {
|
||||
void Buffer::TransitionUsageImpl(nxt::BufferUsageBit, nxt::BufferUsageBit) {
|
||||
}
|
||||
|
||||
BufferView::BufferView(BufferViewBuilder* builder)
|
||||
|
||||
@@ -215,7 +215,7 @@ namespace metal {
|
||||
// so this-> works as expected. However it is unclear how members are captured, (are they
|
||||
// captured using this-> or by value?) so we make a copy of the pendingCommandSerial on the stack.
|
||||
Serial pendingSerial = pendingCommandSerial;
|
||||
[pendingCommands addCompletedHandler:^(id<MTLCommandBuffer> commandBuffer) {
|
||||
[pendingCommands addCompletedHandler:^(id<MTLCommandBuffer>) {
|
||||
this->finishedCommandSerial = pendingSerial;
|
||||
}];
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace metal {
|
||||
return mtlTexture;
|
||||
}
|
||||
|
||||
void Texture::TransitionUsageImpl(nxt::TextureUsageBit currentUsage, nxt::TextureUsageBit targetUsage) {
|
||||
void Texture::TransitionUsageImpl(nxt::TextureUsageBit, nxt::TextureUsageBit) {
|
||||
}
|
||||
|
||||
TextureView::TextureView(TextureViewBuilder* builder)
|
||||
|
||||
Reference in New Issue
Block a user