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 <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2022-04-26 08:09:41 +00:00 committed by Dawn LUCI CQ
parent a7a9fcbc30
commit 53f0723460
1 changed files with 4 additions and 4 deletions

View File

@ -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,