Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track depth and stencil writability separately. #2693

Merged

Conversation

jimblandy
Copy link
Member

Put some plumbing in place to accomodate the latest definition of GPURenderBundleEncoderDescriptor in the WebGPU spec, which now has separate depthReadOnly and stencilReadOnly members.

Rename RenderPassDepthStencilAttachment::is_read_only to depth_stencil_read_only, and don't skip validation steps due to early returns.

@jimblandy jimblandy self-assigned this May 25, 2022
@jimblandy jimblandy added type: enhancement New feature or request area: validation Issues related to validation, diagnostics, and error handling area: api Issues related to API surface labels May 25, 2022
@jimblandy
Copy link
Member Author

image

@jimblandy jimblandy force-pushed the separate-depth-stencil-read-only branch from 995eadc to eb1d484 Compare May 25, 2022 03:21
@jimblandy jimblandy requested a review from cwfitzgerald May 31, 2022 17:13
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Some nit level stuff, otherwise LGTM

wgpu-core/src/command/render.rs Outdated Show resolved Hide resolved
wgpu-core/src/command/render.rs Outdated Show resolved Hide resolved
@jimblandy jimblandy force-pushed the separate-depth-stencil-read-only branch from eb1d484 to 40e7144 Compare June 6, 2022 19:36
@jimblandy jimblandy requested a review from cwfitzgerald June 6, 2022 19:36
Put some plumbing in place to accomodate the latest definition of
`GPURenderBundleEncoderDescriptor` in the WebGPU spec, which now has
separate `depthReadOnly` and `stencilReadOnly` members.

Rename `RenderPassDepthStencilAttachment::is_read_only` to
`depth_stencil_read_only`, and don't skip validation steps due to
early returns.
@jimblandy jimblandy force-pushed the separate-depth-stencil-read-only branch from 40e7144 to 11c0494 Compare June 6, 2022 19:39
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

LGTM

@cwfitzgerald cwfitzgerald merged commit 5bee63e into gfx-rs:master Jun 7, 2022
@jimblandy jimblandy deleted the separate-depth-stencil-read-only branch June 7, 2022 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api Issues related to API surface area: validation Issues related to validation, diagnostics, and error handling type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants