-
Notifications
You must be signed in to change notification settings - Fork 669
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
Clarify OffscreenCanvas.transferToImageBitmap and preserveDrawingBuffer #3612
Comments
I think the depth and stencil buffers, if they exist, should be cleared to the default values defined in https://registry.khronos.org/webgl/specs/latest/1.0/#2.2 . What do you and others think? |
The depth, stencil and color buffers should be cleared if preserveDrawingBuffer == false. Otherwise transferToImageBitmap + Placeholder Canvas + preserveDrawingBuffer == true seems hard to implement:
|
I agree, clearing implies clearing depth-stencil as well. |
WIP: Needs tests I think. |
|
…roup#3612 Test following spec clarifications: * the value of preserveDrawingBuffer will have no effect * the contents of any depth and/or stencil buffers will be cleared to initial values
…roup#3612 Test following spec clarifications: * the value of preserveDrawingBuffer will have no effect * the contents of any depth and/or stencil buffers will be cleared to initial values
…Group#3612) Test following spec clarifications: * the value of preserveDrawingBuffer will have no effect * the contents of any depth and/or stencil buffers will be cleared to initial values
…Group#3612) Test following spec clarifications: * the value of preserveDrawingBuffer will have no effect * the contents of any depth and/or stencil buffers will be cleared to initial values
…Group#3612) Test following spec clarifications: * the value of preserveDrawingBuffer will have no effect * the contents of any depth and/or stencil buffers will be cleared to initial values
…Group#3612) Test following spec clarifications: * the value of preserveDrawingBuffer will have no effect * the contents of any depth and/or stencil buffers will be cleared to initial values
Clarify OffscreenCanvas.transferToImageBitmap and preserveDrawingBuffer
It mandates that color buffer is cleared.
Are depth and stencil buffers preserved or cleared?
The text was updated successfully, but these errors were encountered: