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

Indicate when compositing is using depth values #563

Merged
merged 1 commit into from
Apr 1, 2019
Merged

Conversation

toji
Copy link
Member

@toji toji commented Mar 15, 2019

This addresses a concern brought up by @kearwood during the discussion
of #523. He pointed out that it would be useful for some apps to know
if the compositor actually was using the depth values in the case where
ignoreDepthValues was not set to true at layer creation time,
because that would allow some applications to skip an unnecessary
explicit depth write step that they otherwise would be happy to do if
they knew it would contribute to the final frame.

Following the pattern set by other WebGL-style attributes like
antialias, this PR indicates that the layer attribute should
communicate whether or not depth values are actually being ignored by
the compositor, rather than simply echo the boolean passed in at layer
creation time.

This addresses a concern brought up by @kearwood during the discussion
of #523. He pointed out that it would be useful for some apps to know
if the compositor actually was using the depth values in the case where
`ignoreDepthValues` was not set to `true` at layer creation time,
because that would allow some applications to skip an unnecessary
explicit depth write step that they otherwise would be happy to do if
they knew it would contribute to the final frame.

Following the pattern set by other WebGL-style attributes like
`antialias`, this PR indicates that the layer attribute should
communicate whether or not depth values are actually being ignored by
the compositor, rather than simply echo the boolean passed in at layer
creation time.
@toji toji added the agenda Request discussion in the next telecon/FTF label Mar 15, 2019
@toji toji added this to the Next Working Draft milestone Mar 15, 2019
@NellWaliczek NellWaliczek removed the agenda Request discussion in the next telecon/FTF label Mar 25, 2019
@toji toji merged commit 2be9085 into master Apr 1, 2019
@toji toji deleted the depth-ignore-2 branch April 1, 2019 18:36
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.

2 participants