From 53f0723460b385a5707ff95ead2535aaee2e7d91 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 26 Apr 2022 08:09:41 +0000 Subject: [PATCH] utils: Add more defaults for CreateBuffer/TextureImageCopy Bug: None Change-Id: I90c7d8486702585fca497e5063eecc163769a13e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/87862 Reviewed-by: Austin Eng Commit-Queue: Corentin Wallez --- src/dawn/utils/WGPUHelpers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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,