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:
parent
a7a9fcbc30
commit
53f0723460
|
@ -43,13 +43,13 @@ namespace utils {
|
||||||
}
|
}
|
||||||
|
|
||||||
wgpu::ImageCopyBuffer CreateImageCopyBuffer(wgpu::Buffer buffer,
|
wgpu::ImageCopyBuffer CreateImageCopyBuffer(wgpu::Buffer buffer,
|
||||||
uint64_t offset,
|
uint64_t offset = 0,
|
||||||
uint32_t bytesPerRow,
|
uint32_t bytesPerRow = wgpu::kCopyStrideUndefined,
|
||||||
uint32_t rowsPerImage = wgpu::kCopyStrideUndefined);
|
uint32_t rowsPerImage = wgpu::kCopyStrideUndefined);
|
||||||
wgpu::ImageCopyTexture CreateImageCopyTexture(
|
wgpu::ImageCopyTexture CreateImageCopyTexture(
|
||||||
wgpu::Texture texture,
|
wgpu::Texture texture,
|
||||||
uint32_t level,
|
uint32_t level = 0,
|
||||||
wgpu::Origin3D origin,
|
wgpu::Origin3D origin = {0, 0, 0},
|
||||||
wgpu::TextureAspect aspect = wgpu::TextureAspect::All);
|
wgpu::TextureAspect aspect = wgpu::TextureAspect::All);
|
||||||
wgpu::TextureDataLayout CreateTextureDataLayout(
|
wgpu::TextureDataLayout CreateTextureDataLayout(
|
||||||
uint64_t offset,
|
uint64_t offset,
|
||||||
|
|
Loading…
Reference in New Issue