这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@toji
Copy link
Member

@toji toji commented May 9, 2024

Fixes #1192

Takes a lot of the Texture<->Buffer image copy validation logic and dedups it into a single algorithm. Original issue only requested the "single-aspect" validation bits be deduped, but in the end there was a lot more shared logic between three functions that did that check that could be unified.

@toji toji requested review from jimblandy and kainino0x May 9, 2024 22:11
@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2024

Previews, as seen when this build job started (0a2332b):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

@toji
Copy link
Member Author

toji commented May 10, 2024

Oh! Also forgot to mention that I noticed that I missed updating copies.bs with my previous timelines PR, so I've made those changes as part of this PR (since it was relatively minimal)

|dstTexture|.{{GPUTexture/format}}.
- That aspect must be a valid image copy destination according to [[#depth-formats]].
- Set |aspectSpecificFormat| to the [=aspect-specific format=] according to [[#depth-formats]].
- [=validating texture copy range=](|destination|, |copySize|) return `true`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step seems to be missing now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that. I tried so hard to make sure everything got pulled over, but with as much rearranging as it required I guess I'm not too surprised I missed a step.

@toji toji force-pushed the single-aspect branch from 66235c3 to c297fe6 Compare May 20, 2024 22:34
@toji toji force-pushed the single-aspect branch from 3df267e to 0a2332b Compare May 21, 2024 17:58
@toji toji enabled auto-merge (squash) May 21, 2024 17:59
@toji toji merged commit 3eec234 into main May 21, 2024
@toji toji deleted the single-aspect branch May 21, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider deduplicating "must be a single aspect" validation

3 participants