mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
Add texture aspect to texture copy view and validation tests
Bug: dawn:439 Change-Id: I0ca283f58fe2b63ac3a8c468f8ea1bb2d300856f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/24683 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
b8a56af176
commit
0d9fce100d
@@ -276,11 +276,13 @@ namespace utils {
|
||||
|
||||
wgpu::TextureCopyView CreateTextureCopyView(wgpu::Texture texture,
|
||||
uint32_t mipLevel,
|
||||
wgpu::Origin3D origin) {
|
||||
wgpu::Origin3D origin,
|
||||
wgpu::TextureAspect aspect) {
|
||||
wgpu::TextureCopyView textureCopyView;
|
||||
textureCopyView.texture = texture;
|
||||
textureCopyView.mipLevel = mipLevel;
|
||||
textureCopyView.origin = origin;
|
||||
textureCopyView.aspect = aspect;
|
||||
|
||||
return textureCopyView;
|
||||
}
|
||||
|
||||
@@ -52,9 +52,11 @@ namespace utils {
|
||||
uint64_t offset,
|
||||
uint32_t bytesPerRow,
|
||||
uint32_t rowsPerImage);
|
||||
wgpu::TextureCopyView CreateTextureCopyView(wgpu::Texture texture,
|
||||
uint32_t level,
|
||||
wgpu::Origin3D origin);
|
||||
wgpu::TextureCopyView CreateTextureCopyView(
|
||||
wgpu::Texture texture,
|
||||
uint32_t level,
|
||||
wgpu::Origin3D origin,
|
||||
wgpu::TextureAspect aspect = wgpu::TextureAspect::All);
|
||||
wgpu::TextureDataLayout CreateTextureDataLayout(uint64_t offset,
|
||||
uint32_t bytesPerRow,
|
||||
uint32_t rowsPerImage);
|
||||
|
||||
Reference in New Issue
Block a user