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

Make depth_stencil_attachment follow the spec #611

Merged
merged 9 commits into from
Oct 8, 2024

Conversation

fyellin
Copy link
Contributor

@fyellin fyellin commented Oct 3, 2024

https://www.w3.org/TR/webgpu/#depth-stencil-attachments

Make depth_stencil_attachment more closely follow the specification. No longer do we need to specify stencil_xxx if it's a depth, and no need to specify depth_xxx if it's a stencil. We only need to specify "color" if it's a "clear".

Copy link
Member

@almarklein almarklein left a comment

Choose a reason for hiding this comment

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

Thanks for this!

wgpu/backends/wgpu_native/_api.py Show resolved Hide resolved
wgpu/backends/wgpu_native/_api.py Outdated Show resolved Hide resolved
Simplify test_wgpu_native_render.py
Add test that warnings occur, but only once.
…eld while others had a DeviceImpl. Made it uniformly a Device. Added test to ensure this was the case.

Fixed some typos.
@fyellin fyellin marked this pull request as ready for review October 5, 2024 01:05
@fyellin fyellin requested a review from Korijn as a code owner October 5, 2024 01:05
@fyellin
Copy link
Contributor Author

fyellin commented Oct 5, 2024

Fixed some typos.
Discovered that some GPU objects had GPUDevice in the _device field while others had GPUDeviceImpl. Made sure that everything uniformly had a GPUDevice, and that we test for this.

@fyellin
Copy link
Contributor Author

fyellin commented Oct 6, 2024

Deleted last comment. More work than I realized for too little gain.

@Korijn Korijn merged commit 68f2846 into pygfx:main Oct 8, 2024
20 checks passed
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.

4 participants