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

GrabPass functionality changes to support WebGPU and improve WebGL support #4896

Merged
merged 3 commits into from
Nov 30, 2022

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Nov 30, 2022

  • fixes Wrong use of this in SceneGrab #4399
  • better support of alpa vs no alpha frame buffer format
  • better support for grab pass on a camera that renders to render target
  • support for grab pass (without mipmap generation) for WebGPU

This is all tested for all Webgl 1 & 2, post-effects & not, and alpha & opaque framebuffer combinations.

@mvaligursky mvaligursky self-assigned this Nov 30, 2022
@mvaligursky mvaligursky added the area: graphics Graphics related issue label Nov 30, 2022
// texture format of the source texture the grab pass needs to copy
getSourceColorFormat(texture) {
// based on the RT the camera renders to, otherwise framebuffer
return texture?.format ?? this.device.framebufferFormat;
Copy link
Member

Choose a reason for hiding this comment

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

?? just looks so weird as an or operator

@mvaligursky mvaligursky merged commit bda345f into main Nov 30, 2022
@mvaligursky mvaligursky deleted the mv-grabpass-webgpu branch November 30, 2022 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong use of this in SceneGrab
2 participants