Skip to content

Commit

Permalink
Refactor deprecated .copySrc/copyDst in image_copy.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x committed Feb 16, 2024
1 parent a3ed6a0 commit 69d0b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webgpu/api/validation/image_copy/image_copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ export function formatCopyableWithMethod({ format, method }: WithFormatAndMethod
return supportedAspects.length > 0;
}
if (method === 'CopyT2B') {
return info.copySrc;
return info.color.copySrc;
} else {
return info.copyDst;
return info.color.copyDst;
}
}

Expand Down

0 comments on commit 69d0b83

Please sign in to comment.