mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
Rename STRIDE_UNDEFINED to COPY_STRIDE_UNDEFINED
Per https://github.com/webgpu-native/webgpu-headers/pull/71 Keeps but deprecates WGPU_STRIDE_UNDEFINED/wgpu::kStrideUndefined. Bug: dawn:520 Change-Id: Ied162ec39454fac3d16a3782c9ed6d2f68c1d41d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/34926 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
fea4c14580
commit
cf820d79ef
@@ -44,7 +44,7 @@ namespace utils {
|
||||
|
||||
layout.bytesPerRow = GetMinimumBytesPerRow(format, layout.mipSize.width);
|
||||
|
||||
if (rowsPerImage == wgpu::kStrideUndefined) {
|
||||
if (rowsPerImage == wgpu::kCopyStrideUndefined) {
|
||||
rowsPerImage = layout.mipSize.height;
|
||||
}
|
||||
layout.rowsPerImage = rowsPerImage;
|
||||
@@ -125,7 +125,7 @@ namespace utils {
|
||||
|
||||
wgpu::TextureCopyView textureCopyView = utils::CreateTextureCopyView(texture, 0, {0, 0, 0});
|
||||
wgpu::TextureDataLayout textureDataLayout =
|
||||
utils::CreateTextureDataLayout(0, wgpu::kStrideUndefined);
|
||||
utils::CreateTextureDataLayout(0, wgpu::kCopyStrideUndefined);
|
||||
wgpu::Extent3D copyExtent = {1, 1, 1};
|
||||
|
||||
// WriteTexture with exactly 1 byte of data.
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace utils {
|
||||
wgpu::TextureFormat format,
|
||||
wgpu::Extent3D textureSizeAtLevel0,
|
||||
uint32_t mipmapLevel,
|
||||
uint32_t rowsPerImage = wgpu::kStrideUndefined);
|
||||
uint32_t rowsPerImage = wgpu::kCopyStrideUndefined);
|
||||
|
||||
uint64_t RequiredBytesInCopy(uint64_t bytesPerRow,
|
||||
uint64_t rowsPerImage,
|
||||
|
||||
@@ -53,15 +53,16 @@ namespace utils {
|
||||
wgpu::BufferCopyView CreateBufferCopyView(wgpu::Buffer buffer,
|
||||
uint64_t offset,
|
||||
uint32_t bytesPerRow,
|
||||
uint32_t rowsPerImage = wgpu::kStrideUndefined);
|
||||
uint32_t rowsPerImage = wgpu::kCopyStrideUndefined);
|
||||
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 = wgpu::kStrideUndefined);
|
||||
wgpu::TextureDataLayout CreateTextureDataLayout(
|
||||
uint64_t offset,
|
||||
uint32_t bytesPerRow,
|
||||
uint32_t rowsPerImage = wgpu::kCopyStrideUndefined);
|
||||
|
||||
struct ComboRenderPassDescriptor : public wgpu::RenderPassDescriptor {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user