diff --git a/src/dawn/utils/WGPUHelpers.h b/src/dawn/utils/WGPUHelpers.h index 22773bffbb..67199fc295 100644 --- a/src/dawn/utils/WGPUHelpers.h +++ b/src/dawn/utils/WGPUHelpers.h @@ -43,13 +43,13 @@ namespace utils { } wgpu::ImageCopyBuffer CreateImageCopyBuffer(wgpu::Buffer buffer, - uint64_t offset, - uint32_t bytesPerRow, + uint64_t offset = 0, + uint32_t bytesPerRow = wgpu::kCopyStrideUndefined, uint32_t rowsPerImage = wgpu::kCopyStrideUndefined); wgpu::ImageCopyTexture CreateImageCopyTexture( wgpu::Texture texture, - uint32_t level, - wgpu::Origin3D origin, + uint32_t level = 0, + wgpu::Origin3D origin = {0, 0, 0}, wgpu::TextureAspect aspect = wgpu::TextureAspect::All); wgpu::TextureDataLayout CreateTextureDataLayout( uint64_t offset,