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

WebGPU partial support for multisampled RT using supplied depth texture #6917

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Sep 6, 2024

  • implements support for WebGPU rendering to a supplied depth texture when MSAA is enabled. This internally allocates additional MSAA depth buffer for rendering.
  • refactored to store depth related parts of WegpuRenderTarget in a DepthAttachment private class
  • solves first point here: WebGPU MSAA render target with depth buffer fails #5714 (comment)
  • other points to be done separately

@@ -12,6 +12,8 @@ const stringIds = new StringIds();

/**
* Private class storing info about color buffer.
*
* @private
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm guessing this is unnecessary because the root index.js does not export this class.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah but I had to add it to avoid the type errors coming from WebGPU types

* A WebGPU implementation of the RenderTarget.
* Private class storing info about depth-stencil buffer.
*
* @private
Copy link
Contributor

Choose a reason for hiding this comment

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

Unnecessary.

@mvaligursky mvaligursky merged commit a5248ce into main Sep 6, 2024
8 checks passed
@mvaligursky mvaligursky deleted the mv-webgpu-depth-msaa branch September 6, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants