Skip to content

Clarify that attachments may not alias - #2454

Merged
kainino0x merged 1 commit into
gpuweb:mainfrom
kainino0x:attachment-aliasing
Dec 28, 2021
Merged

kainino0x merged 1 commit into
gpuweb:mainfrom
kainino0x:attachment-aliasing

Conversation

@kainino0x

@kainino0x kainino0x commented Dec 23, 2021 •

Copy link
Copy Markdown
Contributor

Fixes #1358


Preview | Diff

@github-actions

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (0a608ab):
WebGPU | IDL
WGSL
Explainer

Comment thread spec/index.bs
The {{GPURenderPassDepthStencilAttachment}} value that defines the depth/stencil
attachment that will be output to and tested against when executing this render pass.

Due to [=compatible usage list|usage compatibility=], no writable depth/stencil attachment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it's not possible to have multiple depth attachments in a pass, anyway, so this sentence could be simplified

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's meant to be unambiguous - we can't currently use textures of the same format for both color and depth outputs, but we could if red/depth could be reinterpreted by createView. The reader of this sentence shouldn't need to know all the context.

@kainino0x
kainino0x enabled auto-merge (squash) December 28, 2021 21:59
@kainino0x
kainino0x merged commit 85eb9a0 into gpuweb:main Dec 28, 2021
@github-actions

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (0a608ab):
WebGPU | IDL
WGSL
Explainer

github-actions Bot added a commit that referenced this pull request Dec 28, 2021
SHA: 85eb9a0
Reason: push, by @kainino0x

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Dec 28, 2021
SHA: 85eb9a0
Reason: push, by @kainino0x

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Dec 28, 2021
SHA: 85eb9a0
Reason: push, by @kainino0x

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@kainino0x
kainino0x deleted the attachment-aliasing branch December 29, 2021 02:05
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.

beginRenderPass should validate that the attachment don't alias

2 participants